def ISPRIME(N): if N < 2: return False elif N == 2: return True elif N % 2 == 0: return False else: for i in range(3, int(N ** 0.5) + 1): if N % i == 0: return False return True def ISSQUARE(N): return float(N ** 0.5).is_integer() def ISCUBIC(N): return float(N ** (1 / 3)).is_integer() def ISPERFECT(N): divisors = [] for i in range(1, N + 1): if N % i == 0: divisors.append(N) divisors.append(int(N / i)) return sum(list(set(divisors))[0:len(list(set(divisors))) - 1]) == N N = int(input()) if N == 0 or N == 1: print(N) elif ISPRIME(N): print("Sosu!") elif ISSQUARE(N): print("Heihosu!") elif ISCUBIC(N): print("Ripposu!") elif ISPERFECT(N): print("Kanzensu!") else: print(N)