import math n = int(input()) sq = math.ceil(math.sqrt(n)) cnt = 0 d = 2 while n > 1 and d <= sq: if n % d == 0: cnt += 1 n //= d if cnt >= 3: break else: d += 1 res = 'NO' if cnt >= 3: res = 'YES' elif cnt >= 2 and n > 1: res = 'YES' print(res)