s = input() print("No" if s[0] <= '3' else "Yes")