Submit | All submissions | Best solutions | Back to list |
DPRSDCDR - Depressed Coder |
Tinni is passionate about coding. But due to classes, CTs, and lab report, everyday she cannot code for at least three hours as suggested by Sadivai. So, sometimes she becomes depressed. But when she is able to code up to the mark she is jolly. Everyday Tinni eats, sleeps and does other household chores for 10 hours. She spends rest of her day attending classes, writing lab reports and preparing for CTs. And if there's time she smiles and does programming. Tinni's BF knows this fact but as he is illiterate he cannot calculate. So he seeks your help to make a program which can calculate whether Tinni will be jolly or depressed based on the input data.
Input
The input contains a number (1 ≤ N ≤ 1000) at the first line representing the number of test case. The next N lines contain 5 integers each, representing number of CT (0 ≤ nCT ≤ 3), number of Lab Reports (0 ≤ nLab ≤ 3), time required for each CT preparation (1 ≤ tCT ≤ 5) hours, time required for each Lab Report writing (1 ≤ tLab ≤ 5) hours and time for attending classes (3 ≤ tCls ≤ 8) hours.
Output
For each test cases print "Khushi" (means jolly in Bengali) or "Hotash" (means depressed in Bengali) in a new line.
Example
Input: 2 2 2 3 1 6 1 2 1 2 3 Output: Hotash Khushi
Added by: | ekayesorko |
Date: | 2016-09-26 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | MAWK BC C NCSHARP C++ 4.3.2 CPP CPP14 COFFEE DART FORTH JAVA JULIA KTLN OCT PROLOG PYPY3 R RACKET SQLITE SWIFT UNLAMBDA |
hide comments