Takahashi likes the sound when he buys a drink from a vending machine.

That sound can be heard by spending A yen (the currency of Japan) each time.

Takahashi has B yen. He will hear the sound as many times as he can with that money, but at most C times, as he would be satisfied at that time.

How many times will he hear the sound?

Constraints

* All values in input are integers.
* 1 \leq A, B, C \leq 100

Input

Input is given from Standard Input in the following format:


A B C


Output

Print the number of times Takahashi will hear his favorite sound.

Examples

Input

2 11 4


Output

4


Input

3 9 5


Output

3


Input

100 1 10


Output

0
import sys
from collections import deque
import copy
import math
def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [A, B, C] = [int(input_raw[0]), int(input_raw[1]), int(input_raw[2])]
    print min(B/A, C)

if __name__ == '__main__':
    main()
