N = int(input()) ans = "No" for i in range(1000): if N + 1 == 10**i: ans = "Yes" print(ans)