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)


hide comments
ViKku: 2015-04-06 15:47:24

in october 2014 i got AC but now it gives me WA is there any change in this problem

Dushyant Singh: 2015-02-15 19:59:40

@Aditya Aman - Yes there is space between colon and Yes/No.
@Sayak Haldar - I got WA because i think we cannot compare long long int with float in other C++ versions. Maybe.

Last edit: 2015-02-15 22:28:20
Adit: 2015-02-15 09:40:43

is there any space between colon and yes?

Sayak Haldar: 2015-02-07 07:55:24

I faced the same issue @ Dushyant Singh.....dont know why?

Dushyant Singh: 2015-02-03 15:29:33

Nice Question! Don't know why my code got AC in C++ 4.3.2 but gave WA in C++ 4.9.2, C++ 14 and C. Maybe it's because we can compare float and decimal in C++ 4.3.2?

Last edit: 2015-02-04 20:37:01
SM_92: 2015-01-04 15:44:24

this question can be done knowing one fact regarding number of divisors.

UTKARSH PILLAI: 2014-12-29 00:01:39

half century..

Archangel: 2014-12-27 12:14:47

use long long for number of test cases also

Manraj Singh: 2014-10-29 14:23:22

Property of divisors.Good question.:D Input size gives a hint to do smart work.


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