# -*- coding: utf-8 -*- import math def prime_factorization(N): i = 2 count = 0 while i <= math.sqrt(N): if N % i == 0: N //= i count += 1 if count > 2: print('YES') return else: i += 1 if N > 1: count += 1 if count > 2: print('YES') return print('No') if __name__ == '__main__': N = int(input()) prime_factorization(N)