Task
You are given an integer with digits. While trying to think at various problems for the Runtime Terror Competition, the scientific committee stumbled upon some basic math definitions:
A number is a perfect square if there is an integer such that . A number is a prime number if its only divisors are and .
Similarly, a square digit is a digit which is perfect square and a prime digit is a digit which is a prime number.
Now your goal is to find out whether the given number has more square digits or more prime digits. If there is an equality, print Equal.
Input data
On the first line you are given , the length of the integer. On the next line you are given the integer, represented as a string of length . The integer is represented with digits from to and has no leading zeroes.
Output data
You will print Square
if it has more square digits than prime digits, Prime
if it has more prime digits than square digits or Equal
, if we have equality.
Constraints and clarifications
- ;
# | Score | Constraints |
---|---|---|
0 | 0 | Example |
1 | 30 | |
2 | 30 | |
3 | 40 | No additional constraints |
Example
stdin
6
402497
stdout
Square
Explanation
The given number, has square digits (, , and ) and prime digits ( and ).