#include <iostream> #include <cmath> using namespace std; int main () { int n; while (cin >> n){ if (n == 0){ break; } int answer = 0; for (int k = 1; k <= sqrt(n); k++){ if (n % (k * k) == 0){ answer++; } } if (answer > 1){ cout << "Yes" << endl; } else{ cout << "No" << endl; } } return 0; }