#include using namespace std; int main() { int N; cin >> N; vector A(N + 1); for (int i = 2; i * i <= N; ++i) A[i * i] = 1; for (int i = 2; i * i * i <= N; ++i) A[i * i * i] = 2; for (int i = 1; i <= N; ++i) { vector fs; for (int j = 1; j < i; ++j) { if (i % j == 0) fs.push_back(j); } if (fs.size() == 1) A[i] = 3; if (accumulate(fs.begin(), fs.end(), 0) == i) A[i] = 4; } if (A[N] == 0) cout << N << endl; else if (A[N] == 1) cout << "Heihosu!" << endl; else if (A[N] == 2) cout << "Ripposu!" << endl; else if (A[N] == 3) cout << "Sosu!" << endl; else if (A[N] == 4) cout << "Kanzensu!" << endl; return 0; }