Illiteracy refers to the inability of a person to read and write. It is a major cause of prevailing poverty and ignorance among a large section of Indian community.
There are many people who have never had the opportunity to go in for formal education, mostly due to poverty and sometimes due to an indifferent family background.
Education and literacy injects determination and will-power in a student to achieve what he want. Such confident students become successful in their endeavors.
A math game is introduced in a school competition to test the skills of students.The game deals with prime numbers.The game rules are as follows:From the given set of distinct natural numbers as input consider the smallest natural number as q.Your task is to compute the smallest prime number (p) such that dividing p by all the distinct numbers in the input except q should result in q as the remainder.Constraints:1<n<11p<10^10Input:Input consists of n+1 number of distinct natural numbers separated by spaces.Output:Print single integer p if such a p exists else print "None".