79A.md (1563B)
1 Source: https://codeforces.com/problemset/problem/79/A 2 3 A. Bus Game 4 5 time limit per test 6 7 2 seconds 8 9 memory limit per test 10 11 256 megabytes 12 13 input 14 15 stdin 16 17 output 18 19 stdout 20 21 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. 22 23 * Initially, there is a pile that contains *x* 100-yen coins and *y* 10-yen coins. 24 * They take turns alternatively. Ciel takes the first turn. 25 * 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. 26 * If Ciel or Hanako can't take exactly 220 yen from the pile, she loses. 27 28 Determine the winner of the game. 29 30 Input 31 32 The first line contains two integers *x* (0 ≤ *x* ≤ 106) and *y* (0 ≤ *y* ≤ 106), separated by a single space. 33 34 Output 35 36 If Ciel wins, print "Ciel". Otherwise, print "Hanako". 37 38 Examples 39 40 Input 41 42 ``` 43 2 2 44 ``` 45 46 Output 47 48 ``` 49 Ciel 50 ``` 51 52 Input 53 54 ``` 55 3 22 56 ``` 57 58 Output 59 60 ``` 61 Hanako 62 ``` 63 64 Note 65 66 In 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.