from collections import Counter import math def prime_factorize(n): a = [] while n % 2 == 0: a.append(2) n //= 2 f = 3 while f * f <= n: if n % f == 0: a.append(f) n //= f else: f += 2 if n != 1: a.append(n) return a def is_prime(x): if x < 2: return False if x == 2 or x == 3 or x == 5: return True if x % 2 == 0 or x % 3 == 0 or x % 5 == 0: return False prime_number = 7 difference = 4 while prime_number <= math.sqrt(x): if x % prime_number == 0: return False prime_number += difference difference = 6 - difference return True n = int(input()) if n == 0: exit(print(0)) c = Counter(prime_factorize(n)).most_common() ans = 1 for i in c: cnt = 0 for j in range(i[1] + 1): cnt += i[0] ** j ans *= cnt if ans == n: print("Kanzensu!") elif is_prime(n): print("Sosu!") elif math.sqrt(n) % 1 == 0: print("Heihosu!") elif n ** (1 / 3) % 1 == 0: print("Ripposu!") else: print(n)