Nobody knows who Pendu really is but everybody wants to know. Director of IIT Roorkee appointed detective Rahul to identify who
Pendu really is. After lots of research, Rahul narrows the suspect list to only two students Amit and Ravi.
Only one of them is Pendu and to find him Rahul has to solve this one final problem.
An array a[1],a[2]...a[N] is called good if it can be divided into exactly two groups such that for every two numbers a[i] and a[j] , if a[i]+a[j] is prime then a[i] and a[j] should be in different groups.
A subsequence of an array is good if array formed by the subsequence is good.
He is given an array a[1],a[2]...a[N]. All elements are distinct. T=total number of good non-empty subsequence in the array.
If T is odd he will know that Amit is Pendu otherwise Ravi is Pendu.
As Rahul is very busy in Cognizance. He asked you to find who Pendu is.
INPUT FORMAT
First line contains N.
Next line contains N integers a[1],a[2]... a[N].
Output Format
Output only one line if
T is odd print "Amit is Pendu".
otherwise, print "Ravi is Pendu".
Input Constraints
1<=N<=1000.
1<=a[i]<=100000.
All a[i] are distinct.