#include using namespace std; #define rep(i, m, n) for (int i = m; i < n; ++i) bool isPrime(int n) { rep(i, 2, n) if(n % i == 0) return false; return true; } bool isHe(int n) { rep(i, 1, n + 1) if(i * i == n) return true; return false; } bool isRi(int n) { rep(i, 1, n + 1) if(i * i * i == n) return true; return false; } template vector divList(T n) { vector res; for(T i = 1; i * i <= n; ++i) { if(n % i == 0) { res.push_back(i); if(i * i != n) res.push_back(n / i); } } sort(res.begin(), res.end()); return res; } bool isKan(int n) { vector D = divList(n); int sum = 0; for(auto d : D) sum += d; return sum - n == n; } int main() { int N; cin >> N; if(N < 2) cout << N << '\n'; else if(isPrime(N)) cout << "Sosu!" << '\n'; else if(isHe(N)) cout << "Heihosu!" << '\n'; else if(isRi(N)) cout << "Ripposu!" << '\n'; else if(isKan(N)) cout << "Kanzensu!" << '\n'; else cout << N << '\n'; return 0; }