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