#include using namespace std; bool isprime(int n){ bool ans = true; if(n == 0 || n == 1) ans = false; for(int i = 2; i*i <= n; i++){ if(n % i == 0) ans = false; } return ans; } bool issqnum(int n){ if(n < 2) return false; for(int i = 1; i*i <= n; i++){ if(i*i == n) return true; } return false; } bool iscubicnum(int n){ if(n < 2) return false; for(int i = 1; i*i*i <= n; i++){ if(i*i*i == n) return true; } return false; } bool isperfnum(int n){ if(n == 0) return false; int sum = 0; for(int i = 1; i < n; i++){ if(n%i == 0) sum += i; } return sum == n; } int main(){ int n; cin >> n; if(isprime(n)) cout << "Sosu!" << endl; else if(issqnum(n)) cout << "Heihosu!" << endl; else if(iscubicnum(n)) cout << "Ripposu!" << endl; else if(isperfnum(n)) cout << "Kanzensu!" << endl; else cout << n << endl; return 0; }