#C11346. Maximum Lights On

    ID: 40652 Type: Default 1000ms 256MiB

Maximum Lights On

Maximum Lights On

You have N lights and N corresponding buttons. Initially, all lights are off. When you press a button, the corresponding light turns on and stays on. Given K button presses, determine the maximum number of lights that can be turned on. Since each button press can only turn on one new light, the answer is the minimum of N and K.

Note that if K is larger than N, you cannot turn on more than N lights because there are only N lights available.

inputFormat

The input consists of a single line with two space-separated integers: N and K, where N is the number of lights (and buttons) and K is the number of button presses.

outputFormat

Output a single integer representing the maximum number of lights that can be turned on.

## sample
5 3
3

</p>