CSES - Aalto Competitive Programming 2024 - wk1 - Wed - Entrepreneur
  • Time limit: 1.00 s
  • Memory limit: 512 MB

Uolevi owns a factory that has nn machines which can be used to make cars. He is now pondering how much unpaid overtime his employees should do so that the quarterly quota of tt cars is met.

For each machine, you know the number of seconds it needs to make a single car. The machines can work simultaneously, and you can freely decide their schedule.

What is the shortest time needed to make tt cars?

Input

The first input line has two integers nn and tt: the number of machines and cars.

The next line has nn integers k1,k2,,knk_1,k_2,\dots,k_n: the time needed to make a car using each machine.

Output

Output one integer which is the minimum time needed to make tt cars.

Constraints

  • 1n21051 \le n \le 2 \cdot 10^5
  • 1t1091 \le t \le 10^9
  • 1ki1091 \le k_i \le 10^9

Example

Input:

3 7
3 2 5

Output:

8

Explanation: Machine 1 makes two cars, machine 2 makes four cars and machine 3 makes one car.