#include #include using namespace std; int main() { int n; cin >> n; if (n == 0 || n == 1) { cout << n << endl; return 0; } int i = 1, k = 0; bool sosu = true; while (i <= n/2) { if ((i != 1) && (n % i == 0)) { sosu = false; } if (n == int(pow(i, 2))) { cout << "Heihosu!" << endl; return 0; } if (n == int(pow(i, 3))) { cout << "Ripposu!" << endl; return 0; } if (n % i == 0) { k += i; } i++; } if (k == n) { cout << "Kanzensu!" << endl; return 0; } if (sosu) { cout << "Sosu!" << endl; return 0; } cout << n << endl; return 0; }