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