Tianjin University Online Judge
Contests Virtual Contests Problems Submit Runs Status Rank List Forum

3975.   Sequence
Time Limit: 1.0 Seconds   Memory Limit: 65536K
Total Runs: 638   Accepted Runs: 357

After the final exam, Shawn started to play a computer game SW. In the game, Shawn needs to make his equipments. Just like the pattern of most of other games, SW’s equipment can be improved by stones, but different level stones have different ability. The 1st level stone can increase the property of equipment by 0.6, the 2nd is 0.7, and the kth level Lk can increase Lk-1×0.6+ Lk-2×0.5(k≥3). Now, he wants to know how much property the kth level Lk stone can increase.


The first line of the input is an integer T(1≤T≤100) which indicates the sum of test case. Each of the following T lines contains an integer k(1≤k≤100).


For every case output “Case i: Result” in a line where i is the case number and Result is the property the ith level stone can increase. Leave 2 digits after the decimal point.

Sample Input


Sample Output

Case 1: 0.60
Case 2: 0.78
Case 3: 0.95

Source: TJU Team Selection 2013
Submit   List    Runs   Forum   Statistics

Tianjin University Online Judge v1.3.0
Maintance:Fxz. Developer: SuperHacker, G.D.Retop, Fxz