a=int(input()) for i in range(2,3300): if a+1==10**i: print("Yes") exit() print("No")