import math N = int(input()) limit = int(math.sqrt(N)) div = [] n = N i = 2 if (n == 1 or n == 2) : print('No') elif (n % 2 == 0) : print('YES') else : for i in range(3, limit + 1, 2) : if (n % i == 0) : print('YES') break else : print('NO')