num = int(input()) if num % 2 == 0: print("Yes") else: print("No")
或者位运算的:
num = int(input()) if num & 1: print("No") else: print("Yes")