import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if (n <= 1) { System.out.println(n); return; } int ans = 0; if (isPrime(n)) { ans += 1; } if (isDbl(n)) { ans += 2; } if (isTr(n)) { ans += 4; } if (isPerf(n)) { ans += 8; } String str; if (ans == 1) { str = "Sosu!"; } else if (ans == 2) { str = "Heihosu!"; } else if (ans == 4) { str = "Ripposu!"; } else if (ans == 8) { str = "Kanzensu!"; } else { str = String.valueOf(n); } System.out.println(str); } static boolean isPrime(int x) { for (int i = 2; i <= Math.sqrt(x); i++) { if (x % i == 0) { return false; } } return true; } static boolean isDbl(int x) { for (int i = 2; i * i <= x; i++) { if (i * i == x) { return true; } } return false; } static boolean isTr(int x) { for (int i = 2; i * i * i <= x; i++) { if (i * i * i == x) { return true; } } return false; } static boolean isPerf(int x) { int sum = 1; for (int i = 2; i < x; i++) { if (x % i == 0) { sum += i; } } return sum == x; } }