TIPTOP - Tip Top Game

Alim and Sufian are two good friends. They love playing a game with numbers, and recently, they discovered a new game called “Tip Top”. The rule of the game is they took a number (N) randomly, after that they find all divisors of N. Then they starting to play the game first Alim took a divisor, then Sufian so on. The person who took the last divisor will win the game.

Every time the game started with Alim. Now Alim wants to know when he will win.

As you a good programmer your task is to find will Alim win or not.

Input

Input starts with an integer T (T ≤ 105), denoting the number of test cases. Each case starts with a line containing an integer N (1 ≤ N ≤ 1018) the number.

Output

For each case you have to print “Yes” if Alim will win otherwise “No” with case number. See the sample for exact formatting.

Sample

Input:
2
4
5

Output:
Case 1: Yes
Case 2: No

Problem setter: Ajharul Islam Barid, Dept. of CSE

Bangladesh University of Business and Technology (BUBT)


Added by:Shipu Ahamed
Date:2013-09-18
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64

hide comments
2017-08-01 02:57:24
unsigned long long ..
2017-07-10 09:16:38
Very easy
2017-05-25 15:04:34
my code is giving tle........ i am using sqrtl() function..
any guess why?
2017-04-02 16:03:41
Observation..Rocks..!!
2017-02-01 10:58:47
Same solution gives WA in 5.1 and AC in 4.3.2. Anyone knows why?
2017-01-17 16:58:40
Easy one...
2017-01-17 11:19:07
Don't use a=sqrt(n),a==(int)a,
use a=sqrt(n),a*a==n...
Costed me several WA...
2016-09-13 08:39:06
Mine accepted in one go..
No problem with sqrt() function here.. :)
2016-08-28 08:55:05
stuck... whats wrong with my Code please help
2016-06-23 17:54:14
very easy , my 50th !!! :D
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.