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