Oddie and Evenie
Practice
1 (1 votes)
Easy
Simple Math
Problem
84% Success 936 Attempts 20 Points 3s Time Limit 256MB Memory 1024 KB Max Code

A number is said to Oddie, if this number is multiple of two odd numbers say X and Y such that X > 1 and Y > 1.

Similarly, a number is Evenie, if this number is multiple of two even numbers.

Now given a number you have to tell whether the number is Oddie or Evenie.

If a number is neither a Oddie nor a Evenie, then print -1.

Note: Let the given number be N. If X and Y are selected numbers such that X * Y = N, then X > 1 and Y > 1 must hold.


Input format:

First line consist of number of testcases T.

Each of the next T lines consist of a number.


Output format:

For a given number, output whether it is Oddie or Evenie. If it is none of them, output -1;


Constraints:

1 <= T <= 10^6

1 <= number <= 10^6

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
2 votes
Tags:
ImplementationEasySimple-math
Points:20
7 votes
Tags:
MathematicsOpenApprovedEasyMathamatics
Points:20
11 votes
Tags:
Basic ProgrammingOpenApprovedEasyMathamatics