n=int(input())+1 k=n m=len(str(k)) print("Yes" if k%10**(m-1)==0 and m>1 else "No")