#include using namespace std; using i64 = int64_t; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); i64 n; cin >> n; int count = 0; for (i64 i = 2; i * i <= n; i += 1) { if (n % i == 0) { while (n % i == 0) { n /= i; } count += 1; } } count += n > 1; cout << (count <= 2 ? "Yes" : "No"); }