#!/usr/bin/env python N = int(input()) if 1 <= N <= 3: print('NO') quit() ans = 0 tmp = N while tmp % 2 == 0: ans += 1 tmp = tmp / 2 for i in range(3, N, 2): if ans >= 2: print('YES') quit() elif N % i == 0: ans += 1 if ans >= 2: print('YES') else: print('NO')