import java.io.Console;
import java.util.Scanner;
//TIP To Run code, press or
// click the icon in the gutter.
public class Main {
public static void main(String[] args) {
String name;
String catsName;
int age;
//Console cns = System.console();
Scanner scan = new Scanner(System.in);
name = scan.nextLine();
age = Integer.valueOf(scan.nextLine());
catsName = scan.nextLine();
String ladysName = "Rania";
if (age < 18){
System.out.println("Hello kid!");
}else{
if (name.equals(ladysName)){
System.out.println("Hello Mrs. " + name + " whose age is "
+ age + " whose cat's name is " + catsName);
}else{
System.out.println("Hello Mr. " + name + " whose age is "
+ age + " whose cat's name is " + catsName);
}
}
}
}