NAJPWG - Playing with GCD

no tags 

Tanmoy recently learn about Euclid gcd algorithm. This algorithm looks like:

gcd(a, b):
   if (b == 0): return a
   return gcd(b, a % b)

Now he want to find out how many pair (x, y) can be possible in range N, which gcd is greater than 1. Here pair (x, y) and (y, x) consider as same pair. 1<=x, y<=N.

He can find out it small number easily but for a large number its really hard to find out. Now he needs your help. Write a programme that find out number of such pair.

Input

Input start with an integer number T ( ≤ 10^5), which is number of test cases.

Each test case contain a integer N (1 ≤ N ≤ 10^5).

Output

For each case, print case number and desired answer

Sample

Input:
2
3
4

Output:
Case 1: 2
Case 2: 4


Added by:Najmuzzaman
Date:2014-10-31
Time limit:0.5s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64