m=int(input())
sum,t=0,m
while(t!=0):
   d= t%10
   sum+=d**3
   t //=10
if(m == sum):
   print('yes')
else:
   print('no')

477229b6f7e51094a60e214f28594992bd123c17
<mask token>

<mask token>
while t != 0:
    d = t % 10
    sum += d ** 3
    t //= 10
if m == sum:
    print('yes')
else:
    print('no')

m = int(input())
sum, t = 0, m
while t != 0:
    d = t % 10
    sum += d ** 3
    t //= 10
if m == sum:
    print('yes')
else:
    print('no')

m=int(input())
sum,t=0,m
while(t!=0):
   d= t%10
   sum+=d**3
   t //=10
if(m == sum):
   print('yes')
else:
   print('no')
