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