N = int(input()) if str(N + 1) == '1' + '0' * (len(str(N + 1)) - 1): print('Yes') else: print('No')