#include #define PI 3.14159265359 using namespace std; int main() { int N; cin >> N; vector pn, sn, cb; for (int i = 2; i < 65; i++) { int a, b; a = i * i; b = a * i; if (a <= 64) sn.push_back(a); if (b <= 64) cb.push_back(b); } for (int i = 2; i < 65; i++) { pn.push_back(i); } for (int i = 0; i < pn.size(); i++) { int n = pn.at(i); if (i < pn.size() - 1) { for (int j = i + 1; j < pn.size(); j++) { int& m = pn.at(j); if (m % n == 0) { m = 100; } } } } while (pn.at(pn.size() - 1) == 100) { pn.pop_back(); } string s = to_string(N); if (N == 6 || N == 28) s = "Kanzensu!"; if (count(pn.begin(), pn.end(), N) == 1) s = "Sosu!"; if (count(sn.begin(), sn.end(), N) == 1) s = "Heihosu!"; if (count(cb.begin(), cb.end(), N) == 1) s = "Ripposu!"; cout << s << endl; }