def isprime(N): if N == 1: return False for i in range(2, int(N ** 0.5) + 1): if N % i == 0: return False return True def issquare(N): if N ** (1 / 2) == int(N ** (1 / 2)): return True return False def iscubic(N): if N ** (1 / 3) == int(N ** (1 / 3)): return True return False def isperfect(N): ass = [] for i in range(1, int(N ** 0.5) + 1): if N % i == 0: ass.append(i) if i ** 2 == N: continue ass.append(N // i) if N == sum(ass): return True return False def main(): N = int(input()) if N < 2: print(N) exit() if isprime(N): print('Sosu!') exit() if issquare(N): print('Heihosu!') exit() if iscubic(N): print('Ripposu!') exit() if isperfect(N): print('Kanzensu!') exit() print(N) if __name__ == "__main__": main()