If there is anything that
likes, it is prime numbers. He likes them so much, he decided to throw his friend a prime party.In order to make a prime themed birthday party,
He needs to buy the objects such that:
He buys each object at least twice.
The number of each object is a prime number.
He spends a prime amount of money.
Input Specification
The first line contains the integer
The second line contains the integer
The next
Output Specification
If it is possible to achieve the above goals, output its primetime
. Otherwise, output not primetime
.
Sample Input 1
Copy
31
2
3
5
Sample Output 1
Copy
its primetime
Explanation for Sample Output 1
Sample Input 2
Copy
2
1
97
Sample Output 2
Copy
not primetime
is too poor to buy anything, so the party can't go on.
Comments
For sample 1, user can also buy 3 objects worth 3 dollars, and 2 objects worth 5 dollars, spending in total 19 dollars.
dollars?
Is it acceptable solution? Or user should spend directly
you have to buy each object at least twice but in sample input 1 this doesn't happen :)