n = int(input()) + 1 n_str = str(n)[1:] flg = True for i in n_str: if i != '0': flg = False break if flg == True: print('Yes') else: print('No')