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