#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 nn numbers a1,a2,...,ana_1, a_2, ..., a_n, which can make Fatdog happy. If a number XX is uniquely divisible by exactly one of these numbers, Fatdog will immediately love the number XX.

Fatdog loves plenty of numbers, but he wants to find his true love number YY. However, he doesn't know the exact value of YY. He only knows that the true love number YY is the kk-th smallest number among all numbers he loves.

Could you help him find the exact value of YY?

Input

The first line contains two integers n,k (1n15,1k2311)n,k\ (1\leq n\leq 15, 1\leq k \leq 2^{31}-1).

The second line contains nn integers a1,a2,,an (1ai2311)a_1, a_2,\ldots , a_n\ (1\leq a_i \leq 2^{31}-1). It's guaranteed that there exists two integers i,j (1i,jn,ij)i,j\ (1\le i,j\le n,i\neq j) which satisfy aiaja_i\neq a_j.

Output

One integer, which stands for the exact value of the true love number YY.

It's guaranteed that Y1015Y \leq 10^{15}.

Samples

5 100
196 226 219 186 45
2430

Resources

The 18th UESTC Programming Contest Preliminary