public static void Main()
int hld = Convert.ToInt32(Console.ReadLine());
int total = hld*127 + (365 - hld)*63;
Console.WriteLine("Tom will sleep well");
int y = (30000 - total)/60;
int x = (30000- total) % 100;
Console.WriteLine(y + " hours and " + x + " minutes less for play");
Console.WriteLine("Tom will Run away");
int y = (total - 30000)/60;
int x = (total - 30000) % 100;
Console.WriteLine(y + " hours and " + x + " minutes more for play");