good Luck in CET-4 everybody!
Time limit:1000/1000 MS (java/others) Memory limit:32768/32768 K (java/others)
Total submission (s): 5881 accepted Submission (s): 3800
Problem Description College English class Four exam is coming, you are not in a tense review. Maybe even a short semester of ACM have no time to practice, anyway I know Kiki and CiCi are so. Of course, as in the examination room infiltration of more than 10 of contemporary college students, Kiki and CiCi more understand the relaxation before the test, the so-called "relaxation Youdao" is this meaning. No, Kiki and CiCi play poker for a while to relax their nerves before they take a break every night.
"Upgrade". "Double buckle". "Red Five". or "the Landlord".
Of course not. That's a lot of vulgarity.
As a student at Computer College, Kiki and CiCi did not forget to play cards, they have the same rules for playing cards:
1, a total of n card;
2, the two sides take turns to grasp the card;
3, each person to grasp the number of cards can only be 2 power (ie: 1,2,4,8,16 ...). )
4, grasp the card, the outcome also came out: the final grasp of the cards for the winners;
Suppose Kiki and CiCi are smart enough (in fact, do not have to assume that there is no intelligent students ~), and each time is Kiki first grasp the card, who can win it.
Of course, no matter who wins the game is not a problem, it is important that the immediate arrival of the CET-4 can have a good state.
Good luck in CET-4 everybody!
Input input data contains multiple test cases, one row for each test case, and contains an integer n (1<=n<=1000).
Output if Kiki can win, please export "Kiki", otherwise please output "Cici", each instance output occupies one row.
Sample Input
1 3
Sample Output
Kiki Cici
Author LCY
Source ACM Short Term EXAM_2007/12/13
Recommend LCY | We have carefully selected several similar problems for you:1848 1849 2147 2188 1517
In fact, think carefully about it, if it is a multiple of 3, it constitutes a singular situation, the inevitable win, otherwise will lose.
Import java.io.*;
Import java.util.*;
public class Main
{public
static void Main (string[] args)
{
//TODO auto-generated method stub
Scanner input = new Scanner (system.in);
while (Input.hasnext ())
{
int n = input.nextint ();
if (n%3==0)
{
System.out.println ("Cici");
}
else
{
System.out.println ("Kiki");
}
}}