N = int(input()) if N == 2: print('YES') else: print('NO')