n = int(input()) B, C = [], [] for i in range(2, n): B.append(i**2) C.append(i**3) def sieve(n): is_prime = [True for _ in range(n + 1)] is_prime[0] = False for i in range(2, n + 1): if is_prime[i - 1]: j = 2 * i while j <= n: is_prime[j - 1] = False j += i table = [i for i in range(1, n + 1) if is_prime[i - 1]] return is_prime, table _, A = sieve(n) D = [6, 28, 496, 8128] L = [ (A, "Sosu!"), (B, "Heihosu!"), (C, "Ripposu!"), (D, "Kanzensu!"), ] for X, s in L: if n in X: print(s) break else: print(n)