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