#include <iostream>
#include <math.h>
using namespace std;
int main(void) {
int n;
cin >> n;
if (sqrt(n) * sqrt(n) == n) {
cout << "Numarul " << n << " este patrat perfect.\n";
} else {
cout << "Numarul " << n << " nu este patrat perfect.\n";
}
return 0;
}