N = int(input()) temp=N+1 while temp!=1: if temp%10==0: temp//=10 else: print("No") exit() print("Yes")