There are three people(Cai, Minary and TT). Cai loves both Minary and TT. But, Cai is only one, so everyday he can only visit one people, just Minary or TT.
Cai will visit Minary with the probability p(0 < p < 1), so he will visit TT with the probability (1 - p).
He has n apples and n bananas. If he visits Minary, he will give Minary an apple. If he visits TT, he will give TT a banana.
If he visits Minary without apple, Minary will leave Cai.
or if he visits TT without banana, TT will leave Cai.
Now, Cai wants to know the expected number of fruits left When one of them leave.
For each test case, output one line “Case X: Y” where X is the test case number (starting from 1) and Y is a real number indicating the desired answer. Retained one decimal places.