#Lutece2848. Fatdog's True Love
Fatdog's True Love
Migrated from Lutece 2848 Fatdog's True Love
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
There are numbers , which can make Fatdog happy. If a number is uniquely divisible by exactly one of these numbers, Fatdog will immediately love the number .
Fatdog loves plenty of numbers, but he wants to find his true love number . However, he doesn't know the exact value of . He only knows that the true love number is the -th smallest number among all numbers he loves.
Could you help him find the exact value of ?
Input
The first line contains two integers .
The second line contains integers . It's guaranteed that there exists two integers which satisfy .
Output
One integer, which stands for the exact value of the true love number .
It's guaranteed that .
Samples
5 100
196 226 219 186 45
2430
Resources
The 18th UESTC Programming Contest Preliminary