def main(): n = input() if (n1 := n.count('1')) == 1: print('No') elif n1 == 2: print('Yes') else: print('Yes' if n.index('0') > n.index('1') else 'No') if __name__ == '__main__': main()