Hard Disk DriveTime
limit:2000/1000 MS (java/others) Memory limit:32768/32768 K (java/others)
Total submission (s): 1901 Accepted Submission (s): 1047
Problem Description yesterday your dear cousin Coach Pang gave you a new 100MB hard disk drive (HDD) as a gift because yo U'll get married next year.
But your turned on your computer and the operating system (OS) told you the HDD are about 95MB. The 5MB of space is missing. It's known that the HDD manufacturers has a different capacity measurement. The manufacturers think 1 "kilo" is and the OS thinks that's 1024. There is several descriptions of the size of an HDD. They is byte, Kilobyte, megabyte, gigabyte, terabyte, Petabyte, Exabyte, Zetabyte and Yottabyte. Each one equals a "kilo" of the previous one. For example 1 gigabyte is 1 "kilo" megabytes.
Now your know the size of a hard disk represented by manufacturers and you want to calculate the percentage of the "missing Part ".
Input The first line contains an integer T, which indicates the number of test cases.
For each test case, there is one line contains a string in format "Number[unit]" where number is a positive integer within [1, +] and unit is the description of size which could are "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" in short respectively.
Output for each test case, output one line ' case #x: Y ', where x is the ' Case number ' (starting from 1) and Y-is the Percen Tage of the "missing part". The answer should is rounded to both digits after the decimal point.
Sample Input
2100[MB]1[B]
Sample Output
Case #1:4.63%case #2:0.00%Hint
HDU 4788 Hard Disk Drive