#include #include using namespace std; using namespace atcoder; #define rep(i,n) for(int i=0;i<(int)(n);i++) template inline bool chmax(T&a,T b){if(a inline bool chmin(T&a,T b){if(a>b){a=b;return 1;}return 0;} using ll = long long; int n; bool is_prime(ll x){ for(int i=2;i*i<=x;i++)if(x%i==0) return false; return true; } bool is_square_number(ll x){ for(int i=1;i*i<=x;i++)if(i*i==x) return true; return false; } bool is_cubic_number(ll x){ for(int i=1;i*i*i<=x;i++)if(i*i*i==x) return true; return false; } int main () { cin.tie(0); ios::sync_with_stdio(false); cin >> n; if(n<=1) cout << n << '\n'; else if(is_prime(n)) cout << "Sosu!" << '\n'; else if(is_square_number(n)) cout << "Heihosu!" << '\n'; else if(is_cubic_number(n)) cout << "Ripposu!" << '\n'; else if(n==6 || n==28) cout << "Kanzensu!" << '\n'; else cout << n << '\n'; }