题库练习 Bus Game
← 上一题 下一题 →

A8109 | Bus Game

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

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.

- Initially, there is a pile that contains $x$ 100-yen coins and $y$ 10-yen coins.
- They take turns alternatively. Ciel takes the first turn.
- 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.
- If Ciel or Hanako can't take exactly 220 yen from the pile, she loses.

Determine the winner of the game.

输入格式

The first line contains two integers $x$ ( $0<=x<=10^{6}$ ) and $y$ ( $0<=y<=10^{6}$ ), separated by a single space.

输出格式

If Ciel wins, print "Ciel". Otherwise, print "Hanako".

输入输出样例

输入 #1
2 2
输出 #1
Ciel
输入 #2
3 22
输出 #2
Hanako
C++ 编辑器
输入
输出