#include #include using namespace std; int main() { int N, a = 0, i; cin >> N; if (0 == N || 1 == N) cout << N; else { for (i = 1; i < N; ++i) { if (0 == N % i) a += i; } if (N == a) cout << "Kanzensu!"; else { if (cbrt(N) == ceil(cbrt(N))) cout << "Ripposu!"; else { if (ceil(sqrt(N)) == sqrt(N)) cout << "Heihosu!"; else { for (i = 2; i < N; ++i) { if (0 == N % i) break; } if (N == i) cout << "Sosu!"; else cout << N; } } } } }