Məsələlər
Probability One
Probability One
\includegraphics{file:///C:/DOCUME%7E1/User/LOCALS%7E1/Temp/moz-screenshot-1.png}
\includegraphics{file:///C:/DOCUME%7E1/User/LOCALS%7E1/Temp/moz-screenshot-2.png}
Number guessing is a popular game between elementary-school kids. Teachers encourage pupils to play the game as it enhances their arithmetic skills, logical thinking, and following-up simple procedures. We think that, most probably, you too will master in few minutes. Here’s one example of how you too can play this game: Ask a friend to think of a number, let’s call it \textbf{n_0}.
Then:
\begin{enumerate}
\item Ask your friend to compute \textbf{n_1} = \textbf{3}·\textbf{n_0} and to tell you if \textbf{n1} is even or odd.
\item If \textbf{n_1} is even, ask your friend to compute \textbf{n_2} = \textbf{n_1}/\textbf{2}. If, otherwise, n_1 was odd then let your friend compute \textbf{n_2} = (\textbf{n_1}+\textbf{1})/\textbf{2}.
\item Now ask your friend to calculate \textbf{n_3} = \textbf{3}·\textbf{n_2}.
\item Ask your friend to tell tell you the result of \textbf{n_4} = \textbf{n_3}/\textbf{9}. (\textbf{n_4} is the quotient of the division operation. In computer lingo, "\textbf{/}" is the integer-division operator.)
\item Now you can simply reveal the original number by calculating \textbf{n_0} = \textbf{2}·\textbf{n_4} if \textbf{n_1} was even, or \textbf{n_0} = \textbf{2}·\textbf{n_4}+\textbf{1} otherwise.
\end{enumerate}
Here’s an example that you can follow: If \textbf{n_0} = \textbf{37}, then \textbf{n_1} = \textbf{111} which is odd. Now we can calculate \textbf{n_2} = \textbf{56}, \textbf{n_3}= \textbf{168}, and \textbf{n_4} = \textbf{18}, which is what your friend will tell you. Doing the calculation \textbf{2}·\textbf{n_4}+\textbf{1} = \textbf{37} reveals \textbf{n_0}.
\InputFile
Your program will be tested on one or more test cases. Each test case is made of a single positive number (\textbf{0} < \textbf{n_0} < \textbf{1, 000, 000}).
The last line of the input file has a single zero (which is not part of the test cases).
\OutputFile
For each test case, print the following line:
\textbf{k.} \textbf{B} \textbf{Q}
Where \textbf{k} is the test case number (starting at one,) \textbf{B} is either "\textbf{even}" or "\textbf{odd}" (without the quotes) depending on your friend’s answer in step \textbf{1}. \textbf{Q} is your friend’s answer to step \textbf{4}.
\textbf{Note}: There is a blank space before \textbf{B}.
Giriş verilənləri #1
37 38 0
Çıxış verilənləri #1
1. odd 18 2. even 19