Hide

Problem A
RSA Mistake

An RSA number is a positive integer n that is the product of two distinct primes. For example, 10=25 and 77=711 are RSA numbers whereas 7=7,9=33, and 105=357 are not.

You are teaching a course that covers RSA cryptography. For one assignment problem, you asked students to generate RSA numbers. They were to submit two positive integers A,B. Ideally, these would be distinct prime numbers. But some students submitted incorrect solutions. If they were not distinct primes, partial credit can be earned if AB is not an integer multiple of k2 for any integer k2. If there is an integer k2 such that k2 divides AB, then the student receives no credit.

For a pair of positive integers submitted by a student for the assignment, determine if they should receive full credit, partial credit, or no credit for this submission.

Note: In the sixth sample case below, the number 545528636581876571629707 is divisible by 10000032 and in the seventh sample case below, the number 4313481464413 is divisible by 6567712.

Input

The input consists of a single line containing two integers A (2A1012) and B (2B1012), which are the two submitted numbers.

Output

Display if the student should receive full credit, partial credit, or no credit for the submitted numbers.

Sample Input 1 Sample Output 1
13 23
full credit
Sample Input 2 Sample Output 2
35 6
partial credit
Sample Input 3 Sample Output 3
4 5
no credit
Sample Input 4 Sample Output 4
17 17
no credit
Sample Input 5 Sample Output 5
15 21
no credit
Sample Input 6 Sample Output 6
545528636581 876571629707
no credit
Sample Input 7 Sample Output 7
431348146441 3
no credit
Hide

Please log in to submit a solution to this problem

Log in