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