M = N = int(input()) pf = 0 i = 2 while i ** 2 <= M: while N % i == 0: pf += 1 N //= i i += 1 if N != 1: pf += 1 print("YES" if pf >= 3 else "NO")