N = input() if N.count("1") == 2: print("Yes") exit() c = N.count("1") if N[:c].count("1"): print("Yes") else: print("No")