class Jaskier
{
	public static void main (String[] args) throws java.lang.Exception
	{
		char Action = ' ';

		while (Action != 'e') {
			System.out.println("[T]oss a coin to your witcher or [E]xit?");
			Action = (char) System.in.read();
			
			switch(Action) {
				case 't':
				case 'T':
					if (new java.util.Date().getTime() % 2 == 0) {
						System.out.println("Head!");
					} else {
						System.out.println("Tails!");
					}
					break;
				case 'e': {
					System.out.println("Okay.");
				}
			}
			
			System.out.println();
		}
	}
}