import math Z = int(input()) + 1 print('Yes' if Z == pow(10, int(math.log10(Z))) else 'No')