CIN and Guess output

Here is how I did it.