n = int(input()) cnt = 0 c = 2 while c * c <= n: if n % c == 0: while n % c == 0: n //= c cnt += 1 c += 1 if n > 1: cnt += 1 print("Yes" if cnt <= 2 else "No")