N = int(input()) cnt = 0 while N%2 == 0: N //= 2 cnt += 1 if cnt > 2: print('YES') exit() for i in range(3, int(N**0.5)+1, 2): while N%i == 0: N //= i cnt += 1 if cnt > 2: print('YES') exit() cnt += (N!=1) print('YES' if cnt > 2 else 'NO')