#include using namespace std; int main() { vector prime, square, cube, perfect = { 6, 28 }; for (int i = 2; i < 64; i++) { if (i * i < 64) square.push_back(i * i); if (i * i * i < 64) cube.push_back(i * i * i); if (i == 2 || i == 3 || i == 5 || i == 7 || i % 2 != 0 && i % 3 != 0 && i % 5 != 0 && i % 7 != 0) prime.push_back(i); } int n; cin >> n; if (find(prime.begin(), prime.end(), n) != prime.end()) { cout << "Sosu!" << endl; } else if (find(square.begin(), square.end(), n) != square.end()) { cout << "Heihosu!" << endl; } else if (find(cube.begin(), cube.end(), n) != cube.end()) { cout << "Ripposu!" << endl; } else if (find(perfect.begin(), perfect.end(), n) != perfect.end()) { cout << "Kanzensu!" << endl; } else { cout << n << endl; } }