{"problem":{"name":"A. Bus Game","description":{"content":"After Fox Ciel won an onsite round of a programming contest, she took a bus to return to her castle. The fee of the bus was 220 yen. She met Rabbit Hanako in the bus. They decided to play the followin","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF79A"},"statements":[{"statement_type":"Markdown","content":"After Fox Ciel won an onsite round of a programming contest, she took a bus to return to her castle. The fee of the bus was 220 yen. She met Rabbit Hanako in the bus. They decided to play the following game because they got bored in the bus.\n\n*   Initially, there is a pile that contains _x_ 100-yen coins and _y_ 10-yen coins.\n*   They take turns alternatively. Ciel takes the first turn.\n*   In each turn, they must take exactly 220 yen from the pile. In Ciel's turn, if there are multiple ways to take 220 yen, she will choose the way that contains the maximal number of 100-yen coins. In Hanako's turn, if there are multiple ways to take 220 yen, she will choose the way that contains the maximal number of 10-yen coins.\n*   If Ciel or Hanako can't take exactly 220 yen from the pile, she loses.\n\nDetermine the winner of the game.\n\n## Input\n\nThe first line contains two integers _x_ (0 ≤ _x_ ≤ 106) and _y_ (0 ≤ _y_ ≤ 106), separated by a single space.\n\n## Output\n\nIf Ciel wins, print \"_Ciel_\". Otherwise, print \"_Hanako_\".\n\n[samples]\n\n## Note\n\nIn the first turn (Ciel's turn), she will choose 2 100-yen coins and 2 10-yen coins. In the second turn (Hanako's turn), she will choose 1 100-yen coin and 12 10-yen coins. In the third turn (Ciel's turn), she can't pay exactly 220 yen, so Ciel will lose.","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"在 Fox Ciel 赢得一场编程竞赛的现场赛段后，她乘坐巴士返回城堡。巴士票价为 220 日元。她在巴士上遇到了 Rabbit Hanako。由于在巴士上感到无聊，她们决定玩以下游戏。\n\n确定游戏的胜者。\n\n第一行包含两个整数 #cf_span[x] (#cf_span[0 ≤ x ≤ 106]) 和 #cf_span[y] (#cf_span[0 ≤ y ≤ 106])，用一个空格分隔。\n\n如果 Ciel 获胜，请输出 \"_Ciel_\"。否则，输出 \"_Hanako_\"。\n\n在第一轮（Ciel 的回合），她会选择 2 枚 100 日元硬币和 2 枚 10 日元硬币。在第二轮（Hanako 的回合），她会选择 1 枚 100 日元硬币和 12 枚 10 日元硬币。在第三轮（Ciel 的回合），她无法恰好支付 220 日元，因此 Ciel 输掉游戏。\n\n## Input\n\n第一行包含两个整数 #cf_span[x] (#cf_span[0 ≤ x ≤ 106]) 和 #cf_span[y] (#cf_span[0 ≤ y ≤ 106])，用一个空格分隔。\n\n## Output\n\n如果 Ciel 获胜，请输出 \"_Ciel_\"。否则，输出 \"_Hanako_\"。\n\n[samples]\n\n## Note\n\n在第一轮（Ciel 的回合），她会选择 2 枚 100 日元硬币和 2 枚 10 日元硬币。在第二轮（Hanako 的回合），她会选择 1 枚 100 日元硬币和 12 枚 10 日元硬币。在第三轮（Ciel 的回合），她无法恰好支付 220 日元，因此 Ciel 输掉游戏。","is_translate":true,"language":"Chinese"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ x, y \\in \\mathbb{Z}_{\\geq 0} $ denote the number of 100-yen and 10-yen coins available, respectively.  \n\nPlayers alternate turns, starting with Ciel. On each turn, a player must select a non-negative integer number of 100-yen coins $ a $ and 10-yen coins $ b $ such that:  \n$$\n100a + 10b = 220\n$$  \nand the available coins satisfy $ a \\leq \\text{remaining 100-yen coins}, b \\leq \\text{remaining 10-yen coins} $.  \nAfter the move, the used coins are removed from the pool.  \n\nThe player unable to make a valid move on their turn loses.\n\n**Constraints**  \n$ 0 \\leq x \\leq 10^6 $, $ 0 \\leq y \\leq 10^6 $\n\n**Objective**  \nDetermine the winner under optimal play:  \n- If Ciel wins, output \"Ciel\".  \n- If Hanako wins, output \"Hanako\".  \n\n**Valid moves (solutions to $ 100a + 10b = 220 $)**:  \nSimplify: $ 10a + b = 22 $, so $ b = 22 - 10a $, with $ a, b \\in \\mathbb{Z}_{\\geq 0} $.  \nPossible integer solutions:  \n- $ a = 0 \\Rightarrow b = 22 $  \n- $ a = 1 \\Rightarrow b = 12 $  \n- $ a = 2 \\Rightarrow b = 2 $  \n\nThus, the set of valid moves is:  \n$$\nM = \\{ (0,22), (1,12), (2,2) \\}\n$$\n\nThe game is a two-player impartial game with state $ (x, y) $, and moves reduce $ x $ and $ y $ by amounts in $ M $. The player who cannot move loses.","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF79A","tags":["greedy"],"sample_group":[["2 2","Ciel"],["3 22","Hanako"]],"created_at":"2026-03-03 11:00:39"}}