#include #include #include #include #include #include #include #include using namespace std; int main() { int n, sum1 = 0, f = 0; cin >> n; int t = pow(n, 0.5); for (int i = 2; i <= t; i++){ if (n == i*i*i){ cout << "Ripposu!" << endl; return 0; } if (n == i*i){ cout << "Heihosu!" << endl; return 0; } if (n != 1 && !(n%i)) f++; if (!(n%i)){ if (i != n/i) sum1 += (i + n/i); else sum1 += i; } } sum1 += 1; if (n != 0 && n != 1 && sum1 == n){ cout << "Kanzensu!" << endl; return 0; } if (n != 0 && n != 1 && !f) cout << "Sosu!" << endl; else cout << n << endl; }