#include #include #define llint long long using namespace std; llint n; int main(void) { ios::sync_with_stdio(0); cin.tie(0); cin >> n; if(n <= 1){ cout << n << endl; return 0; } bool prime = true; int sum = 1; for(int i = 2; i < n; i++){ if(n % i == 0) prime = false, sum += i; } bool square = false, cube = false; for(int i = 1; i <= n; i++){ if(n == i*i) square = true; if(n == i*i*i) cube = true; } bool perfect = (sum == n); if(prime && !square && !cube && !perfect) cout << "Sosu!" << endl; else if(!prime && square && !cube && !perfect) cout << "Heihosu!" << endl; else if(!prime && !square && cube && !perfect) cout << "Ripposu!" << endl; else if(!prime && !square && !cube && perfect) cout << "Kanzensu!" << endl; else cout << n << endl; return 0; }