n=int(input())
t=n
i=0
arm=0
while n>0:
  r=n%10
  n=n//10
  arm=arm+(r*r*r)
if arm==t:
  print("yes")
else:
  print("no")
  

1147337945a68b72e1d49f49cf099343691990aa
<mask token>

<mask token>
while n > 0:
    r = n % 10
    n = n // 10
    arm = arm + r * r * r
if arm == t:
    print('yes')
else:
    print('no')

n = int(input())
t = n
i = 0
arm = 0
while n > 0:
    r = n % 10
    n = n // 10
    arm = arm + r * r * r
if arm == t:
    print('yes')
else:
    print('no')

n=int(input())
t=n
i=0
arm=0
while n>0:
  r=n%10
  n=n//10
  arm=arm+(r*r*r)
if arm==t:
  print("yes")
else:
  print("no")
  
