Everyone knows of the secret agent double-oh-seven, the popular Bond (James Bond). A lesser known fact is that he actually did not perform most of his missions by himself; they were instead done by his cousins, Jimmy Bonds. Bond (James Bond) has grown weary of having to assign missions to Jimmy Bonds every time he gets new missions so he has asked you to help him out.
Every month Bond (James Bond) receives a list of missions. Using his detailed intelligence from past missions, for every mission and for every Jimmy Bond he calculates the probability of that particular mission being successfully completed by that particular Jimmy Bond. Your program should process that data and find the arrangement that will result in the greatest probability that all missions are completed successfully.
Note: the probability of all missions being completed successfully is equal to the product of the probabilities of the single missions being completed successfully.
The first line will contain an integer , the number of Jimmy Bonds and missions .
The following lines will contain integers between and , inclusive. The integer on the line is the probability that Jimmy Bond would successfully complete mission , given as a percentage.
Output the maximum probability of Jimmy Bonds successfully completing all the missions, as a percentage.
Note: Outputs within of the official solution will be accepted.
Sample Input 1
2 100 100 50 50
Sample Output 1
Sample Input 2
2 0 50 50 0
Sample Output 2
Sample Input 3
3 25 60 100 13 0 50 12 70 90
Sample Output 3
Explanation for Sample Output 3
If Jimmy Bond 1 is assigned the mission, Jimmy Bond 2 the mission and Jimmy Bond 3 the mission the probability is: . All other arrangements give a smaller probability of success.