#include using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; inline bool is_prime(int n) { for (int i = 2; i * i <= n; i++) { if (n % i == 0) return false; } return n != 1; } inline bool is_sqr(int n) { int s = sqrt(n); return s * s == n; } inline bool is_cube(int n) { int s = cbrt(n); return s * s * s == n; } inline bool is_perfect(int n) { int divsum = 0; for (int i = 1; i * i <= n; i++) { if (n % i == 0) { divsum += i; if (i * i != n) divsum += n / i; } } return divsum == n * 2; } int main() { int n; cin >> n; if (is_prime(n)) { cout << "Sosu!" << endl; } else if (is_sqr(n)) { cout << "Heihosu!" << endl; } else if (is_cube(n)) { cout << "Ripposu!" << endl; } else if (is_perfect(n)) { cout << "Kanzensu!" << endl; } else { cout << n << endl; } return 0; }