//Anamary Leal
//July 14, 2005
//Solution to BHCSI 7/15/05 Programming Contest Problem: Compatibility

import java.io.*;

public class compat
{
	public static void main (String args []) throws IOException
	{
		int total = 0, hair, eyes, cats;
		double ave = 0;
		String name;
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		
		//The values are inputted
		System.out.println("Please input your name:");
		name = input.readLine();
		System.out.println("Please input your hair color (1 = blond, 2 = brown, 3 = black, 4 = other):");
		hair = Integer.parseInt(input.readLine());
		System.out.println("Please input your eye color (1 = blue, 2 = brown, 3 = green, 4 = hazel, 5 = other):");
		eyes = Integer.parseInt(input.readLine());
		System.out.println("Do you like cats (1 = yes, 0 = no):");
		cats = Integer.parseInt(input.readLine());
		
		//The following if deals with the hair and its rating
		//this tests the black hair/blue eyes combination
		if((hair == 3) && (eyes == 1))
		{
			//The total score for each category is 4 (2 for hair, 2 for eyes)
			total += 4;
		}
		//this tests the brown hair/blue eyes combination
		else if((hair == 2) && (eyes == 2))
		{
			//The total score for each category is 8 (4 for hair, 4 for eyes)
			total += 10;
		}
		else
		{
			if(hair == 1)
			{
				total += 4;
			}
			//give all other possibilites of hair a 3
			else
			{
				total += 3;
			}
			
			//The eyes will be tested if it's green
			if(eyes == 3)
			{
				total += 4;
			}
			else
			{
				total += 3;
			}
		}
		
		//This will deal with the cat liking question
		if(cats == 1)
		{
			total += 5;
		}
		else
		{
			total += 1;
		}

		
		//the rating/average is calculated
		ave = (double)(total * 5) / 15;
	
		//The appropriate output will be put on the screen
		if(ave > 3)
		{
			System.out.println("When will you be available for Mr. Arima? He will want to meet you, " + name + ".");
		}
		else if(ave > 2)
		{
			System.out.println(name + ", Mr Arima will call you whenever he can pencil you in.");			
		}
		else
		{
			System.out.println("Sorry, " + name + ", Mr Arima just got a huge project, he will be very busy, I'm sorry.");
		}
	}
}