import math
def isCyclopsNumber(n) :
if (n == 0) :
return True
m = n % 10
count = 0
while (m != 0) :
count += 1
n = math.floor(n / 10)
m = n % 10
n = math.floor(n / 10)
m = n % 10
while (m != 0) :
count -= 1
n = math.floor(n / 10)
m = n % 10
return n == 0 and count == 0
print(("yes" if isCyclopsNumber(209) else "no"))
print(("yes" if isCyclopsNumber(18037) else "no"))
print(("yes" if isCyclopsNumber(5604) else "no"))
'''
run:
yes
yes
no
'''