Given an integer(N), write a code to check if it is prime or not.
Input Format:
First line has an integer T - number of test cases.
Each test case is in a new line with a single integer N.
Output Format:
Print "prime" if N is prime, "composite" if N is not a prime. Answer for each test case should be printed in a new line.
Constraints: