def fact(n): s = [] while n % 2 == 0: s.append(2) n //= 2 f = 3 while f * f <= n: if n % f == 0: s.append(f) n //= f else: f += 2 if n != 1: s.append(n) return s n = int(input()) ans = set(fact(n)) if len(ans) <= 2: print("Yes") else: print("No")