St Andrews Online Judge

Greatest Common Multiple

By Kay Akashi

Time: 1000 ms
Memory: 256000 kB

The code judging system is only available during contests. Check out the github repo for test cases and solutions.

Please log in.

Problem Statement

Given an integer XX and nn integers a1a_{1}, …, ana_{n}, find the greatest common multiple of all the elements in aa which is smaller than or equal to XX. If there is no such answer, output 1-1 instead.

Note that, common multiple of aa is the number which can be divided by any element in aa. Your task is to find the greatest one amongst several possible (or zero) common multiples.

Constraints

1n501 \leq n \leq 50, 1ai1001 \leq a_i \leq 100 (1in)(1 \leq i \leq n), 1X1091 \leq X \leq 10^{9}.

Input

The first line of input contains two integers, nn and XX. The second line contains nn integers separated by single spaces in between.

Output

Output the answer.

Examples

Input

3 100
2 3 5

Output

90

Explanation

In this example, common multiples of aa which are smaller than or equal to X=100X = 100 are (30,60,90)(30, 60, 90). The greatest common multiple of aa here is therefore 9090.

Input

4 10
2 5 8 9

Output

-1

Explanation

In this example, the least common multiple is 360360. This indicates that there's no common multiple that is smaller than or equal to 1010. For this reason, output 1-1.