{"raw_statement":[{"iden":"statement","content":"Each month, each student in NCD gets a salary of $B 1^(P 1)$ Liras. But when Ghaffar went to get his salary this month, he was surprised that he was given $B 2^(P 2)$ Liras.\n\nBecause he is lazy, he asked you to determine whether the new salary is bigger or smaller than the original salary.\n\nThe first line of input will be $T$, number of test cases.\n\nEach test case is described by four space separated integers, $B_1, P_1, B_2, P_2$ numbers given in the statement.\n\n$0 <= B, P <= 10^6$\n\nIt's guaranteed that at least one of the $B 1, P 1$ and one of the $B 2, P 2$ is not equal to zero.\n\nFor each test case print \"Congrats\" if the new salary is bigger, print \"HaHa\" if it is smaller, and print \"Lazy\" if it is the same amount. \n\n"},{"iden":"input","content":"The first line of input will be $T$, number of test cases.Each test case is described by four space separated integers, $B_1, P_1, B_2, P_2$ numbers given in the statement.$0 <= B, P <= 10^6$It's guaranteed that at least one of the $B 1, P 1$ and one of the $B 2, P 2$ is not equal to zero."},{"iden":"output","content":"For each test case print \"Congrats\" if the new salary is bigger, print \"HaHa\" if it is smaller, and print \"Lazy\" if it is the same amount. "}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ T \\in \\mathbb{Z} $ be the number of test cases.  \nFor each test case $ k \\in \\{1, \\dots, T\\} $, let $ (B_{1,k}, P_{1,k}, B_{2,k}, P_{2,k}) \\in \\mathbb{Z}_{\\geq 0}^4 $ be the input parameters, with the constraint that at least one of $ B_{1,k}, P_{1,k} $ is nonzero and at least one of $ B_{2,k}, P_{2,k} $ is nonzero.\n\n**Constraints**  \n1. $ 1 \\leq T \\leq 10^5 $ (implied by input bounds)  \n2. $ 0 \\leq B_{1,k}, P_{1,k}, B_{2,k}, P_{2,k} \\leq 10^6 $  \n3. $ (B_{1,k}, P_{1,k}) \\neq (0,0) $ and $ (B_{2,k}, P_{2,k}) \\neq (0,0) $\n\n**Objective**  \nFor each test case $ k $, compare $ S_1 = B_{1,k}^{P_{1,k}} $ and $ S_2 = B_{2,k}^{P_{2,k}} $:  \n- If $ S_2 > S_1 $, output \"Congrats\"  \n- If $ S_2 < S_1 $, output \"HaHa\"  \n- If $ S_2 = S_1 $, output \"Lazy\"","simple_statement":"Given four integers B1, P1, B2, P2, compare B1^P1 and B2^P2.  \nIf B2^P2 > B1^P1, print \"Congrats\".  \nIf B2^P2 < B1^P1, print \"HaHa\".  \nIf they are equal, print \"Lazy\".","has_page_source":false}