import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); long n = sc.nextLong(); sc.close(); if (isSosuu(n)) { System.out.println("Sosu!"); return; } int n2 = (int) Math.sqrt(n); if (n > 1 && n2 * n2 == n) { System.out.println("Heihosu!"); return; } if (n == 8 || n == 27 || n == 64) { System.out.println("Ripposu!"); return; } List list = new ArrayList<>(); long end = (long) Math.sqrt(n); for (int i = 1; i <= end; i++) { if (n % i == 0) { list.add((long) i); } } int i = end * end == n ? list.size() - 2 : list.size() - 1; for ( ; i >= 0; i--) { list.add(n / list.get(i)); } if (list.stream().mapToLong(a -> a).sum() == n * 2) { System.out.println("Kanzensu!"); return; } System.out.println(n); } static boolean isSosuu(long n) { for (int i = 2; i < n; i++) { if (n % i == 0) { return false; } } return true; } }