def Divisor(n): cnt = 0 if n == 1: return False elif n == 2: return False else: i = 2 while n >= i * i: if n % i == 0: cnt += 1 n //= i continue i += 1 return cnt >= 2 return False n = int(input()) if Divisor(n): print("YES") else: print("NO")