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.

-----Sample Input-----
2 11 4

-----Sample Output-----
4

Since he has not less than 8 yen, he will hear the sound four times and be satisfied.

Difficulty: introductory

Starter code:

Solutions:
A, B, C = map(int, input().split())
print(min(B//A, C))

A, B, C = map(int, input().split())
 
print(min(B // A, C))

a,b,c = map(int,input().split())
# b/aの商がcより大きければcを出力
if b // a > c:
    print(c)
# そうでなければb/aの商を出力
else:
    print(b // a)

A, B, C = map(int, input().split())
print(min(B//A, C))

A, B, C = map(int, input().split())
print(min(C, B // A))

a, b, c = map(int, input().split())

n = min(c, b // a)

print(n)

def mapt(fn, *args):
    return tuple(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


def main():
    a, b, c = Input()
    print(min(b//a, c))


main()

A,B,C = map(int, input().split())
ans = int(B/A) if int(B/A) <= C else C
print(ans)

a, b, c = list(map(int, input().split()))
if a * c > b:
    print((b//a))
else:
    print(c)


A, B, C = map(int, input().split())
if A*C <= B:
  print(C)
else:
  print(B//A)

A, B, C = list(map(int, input().split()))

print((min(B//A, C)))


A, B, C = map(int, input().split())
print(min(B//A, C))

A, B, C = map(int,input().split())

if B // A < 0 :
    print('0')
elif B // A >= C:
    print(C)
elif B // A < C:
    print(B // A)

a, b, c = list(map(int, input().split()))
if b // a < c:
    print((b // a))
else:
    print(c)


A, B, C = map(int, input().split())

if B // A > C:
    print(C)
else:
    print(B // A)

A, B, C = map(int, input().split())

print(min(B // A, C))

A, B, C = map(int,input().split())

if B // A >= C:
    print(C)
elif B // A < C:
    print(B // A)

a, b, c = map(int,input().split())
print(min(b//a,c))

a,b,c=list(map(int, input().split()))

if b//a>c:
    print(c)

else:
    print((b//a))




A, B, C = list(map(int, input().split()))


i = B // A
if i > C:
    print(C)
else:
    print(i)


#入力:N,M(int:整数)
def input2():
	return map(int,input().split())

a,b,c=input2()
if b//a >= c:
	print(c)
else:
	print(b//a)

A,B,C=map(int,input().split())
print(min(B//A,C))

a, b, c = map(int, input().split())
print(b//a if b//a < c else c)

a, b, c = list(map(int, input().split()))
can_listen = b // a
if can_listen >= c:
    print(c)
else:
    print(can_listen)


A, B, C = map(int, input().split())

if B // A < C:
    print(B // A)
else:
    print(C)

a,b,c = map(int,input().split())
print(c if b >= a*c else b//a)


url = "https://atcoder.jp//contests/abc120/tasks/abc120_a"

def main():
    a, b, c = list(map(int, input().split()))
    ans = b // a
    print(ans) if c >= ans else print(c)

def __starting_point():
    main()

__starting_point()

S_list = list(map(int,input().split()))
a,b,c = S_list
bell = int(b/a)
if bell >= c:
    result = c
else:
    result = bell
print(result)

a,b,c = map(int, input().split())

if a*c <= b:
    print(c)
else:
    print(b//a)

a, b, c = (int(n) for n in input().split())
if b // a <= c: print(b // a)
else: print(c)

a, b, c = map(int, input().split())
if b // a >= c:
    print(c)
else:
    print(b // a)

A, B, C = list(map(int,input().split()))

if B // A >= C:
    print(C)
elif B // A < C:
    print((B // A))
elif B // A < 1:
    print("0")


#ABC120A
a,b,c = map(int,input().split())
print(min(c,b//a))

a,b,c=map(int,input().split())
print(min(c,b//a))

a,b,c = list(map(int,input().split()))

n = b // a
if n >= c:
    print(c)
else:
    print(n)


a,b,c = list(map(int, input().split()))
print((min(b//a, c)))


a = list(map(int,input().split()))
print((min((a[1]//a[0]),a[2])))



a,b,c=map(int,input().split())
print(min(c,b//a))

a, b, c = map(int, input().split())
print(min(b//a, c))

a,b,c = map(int,input().split())
ans = b//a

ans = min(ans,c)
print(ans)

A, B, C = map(int,input().split())

if (A * C) <= B:
    answer = C
else:
    answer = B // A
print(answer)

# A - Favorite Sound
# https://atcoder.jp/contests/abc120/tasks/abc120_a

a, b, c = list(map(int, input().split()))

count = b // a

if count > c:
    count = c

print(count)


A,B,C = map(int,input().split())

ans = C if C < B // A else B // A

print(ans)


a,b,c = map(int, input().split())

d=b//a

if d>c:
    print(c)
else:
    print(d)

# 数値の取得
A,B,C = map(int,input().split())

# 計算と比較後回数を出力
max_cnt = B // A
sat_cnt = C
if max_cnt < sat_cnt:
  print(max_cnt)
else:
  print(sat_cnt)

A,B,C = map(int,input().split())

print(min(C , B // A))

A,B,C = map(int,input().split())

if A * C <= B:
    print(C)
else:
    print(B//A)

# 120_a
A, B, C = map(int, input().split())
if (1<=A&A<=100)&(1<=B&B<=100)&(1<=C&C<=100):
    C_price=A*C
    if B<C_price:
        B_count=int(B/A)
    elif B>=C_price:
        B_count=C
    print(B_count)

A,B,C = map(int,input().split())


if B//A >= C:
    print(C)
else:
    print(B//A)

a,b,c = map(int,input().split())
if b // a >= c:
    print(c)
else:
    print(b // a)

a,b,c = map(int,input().split())

if a*c > b:
  print(b//a)
else:
  print(c)

a, b, c = list(map(int, input().split()))
answer = min(c, (b // a))

print(answer)


  
# 120a

def atc_120a(input_value: str) -> int:
    A, B, C = map(int, input_value.split(" "))
    return min(C, B // A)

input_value = input()
print(atc_120a(input_value))

a,b,c = map(int, input().split())
if a * c <= b:
    print(c)
if a * c > b:
    print(b // a)

a, b, c = map(int, input().split())
print(min(b//a, c))

A ,B, C = map(int,input().split())

count = B//A
if count > C:
    print(C)
else:
    print(count)

def atc_120a(input_value: str) -> int:
    A, B, C = list(map(int, input_value.split(" ")))
    return min(C, B // A)

input_value = input()
print((atc_120a(input_value)))


a, b, c = list(map(int, input().split()))

num = b // a

print((min(num, c)))


a,b,c = map(int,input().split())
y = 0

for i in range(1000):
    b = b - a

    if b >= 0:
        y = y + 1

        if y == c:
            print(y)
            break

    else:
        print(y)
        break

A,B,C = map(int,input().split())
print(min(C,B//A))

a, b, c = list(map(int,input().split()))

if b//a > c:
    print(c)
else:
    print((b//a))


A, B, C = map(int, input().split())
sound_count = B // A
if sound_count >= C:
    answer = C
else:
    answer = sound_count
print(answer)

A,B,K = map(int,input().split())
print((B//A,K)[B//A >= K])

a, b, c = map(int, input().split())

can_listen = b // a

if can_listen < c:
    print(can_listen)
else:
    print(c)

A,B,C = map(int,input().split())

if A > B:
    print('0')
elif B // A >= C:
    print(C)
elif B // A < C:
    print(B // A)

A,B,C=list(map(int,input().split()))
print((min(C,B//A)))


a,b,c=map(int,input().split())
print(min(b//a, c))

a, b, c = list(map(int, input().split()))
print((min(b//a, c)))


A,B,C = list(map(int,input().split()))

if B >= (A * C):
    print(C)
elif B <= (A * C):
    print((B // A))



a,b,c = list(map(int,input().split()))

oto = b // a
if oto <= c :
    print(oto)
elif oto > c :
    print(c)


a,b,c = map(int,input().split())
print(min(c,b//a))

a,b,c=map(int,input().split())
print(min(b//a,c))

A, B, C = map(int, input().split())

if B // A <= C:
    print(B // A)
else:
    print(C)

A,B,C=map(int, input().split())

cnt=0
while cnt<C:
	if B-A>=0:
		B-=A
		cnt+=1
	else:
		print(cnt)
		return

print(cnt)

A,B,C=map(int,input().split())
if B//A>C:
    print(C)
else:
    print(B//A)

a, b, c = map(int, input().split())
print(c if a * c <= b else b // a)

a, b, c = map(int, input().split())

n = b // a
if n < c:
    print(n)
else:
    print(c)

a, b, c = list(map(int, input().split()))

if b // a >= c:
    print(c)
else:
    print((b // a))


#116A
# 1.値を正しく取得
a, b, c = (int(x) for x in input().split())

# 2.正しく処理
print(min(b//a,c))

a, b, c = map(int,input().split())
print(min(b//a, c))

A, B, C = map(int, input().split())
if B // A > C:
    print(C)
else:
    print(B // A)

A,B,C = map(int,input().split())
print(C) if A*C<=B else print(B//A)
   

A,B,C= map(int, input().split())

kei = A*C

if B >= kei:
    print(C)
else:
    print(int(B/A))

# 1回a円で聞ける
# b円持っている。c回聴くと満足するので、最大c回まで聞けるだけ聞く
# a円 * c回が b円以下の場合
a,b,c = map(int, input().split())
if a * c <= b:
    print(c)
# a円 * c回 が b円を上回る場合
# b円以下に収まる回数までしか聞けない
if a * c > b:
    print(b // a)

a,b,c=map(int, input().split())
print(b//a if b//a<=c else c)

a,b,c = map(int, input().split())

d = b//a

print(min(c,d))

A,B,C = map(int, input().split())

print(min(B//A, C))

# A - Favorite Sound

A, B, C = list(map(int, input().split()))

# A enn B kai MAX c

if A * C <= B:
    answer = C
else:
    answer = B // A

print(answer)


a,b,c=list(map(int ,input().split()))
myans1=int(b/a)
if(myans1>c):
	print(c)
else:
	print(myans1)


A, B, C = map(int, input().split())
print(C if B // A > C else B // A)

A, B, C = map(int, input().split())

if B // A <= C:
    print(B // A)
else:
    print(C)

a,b,c=list(map(int,input().split()))
x=b//a
if x>=c:
    print(c)
else:
    print(x)


a,b,c=map(int, input().split())
if b>=a*c:
    print(c)
else:
    print(b//a)

a, b, c = list(map(int, input().split()))
can_listen = b // a
if can_listen >= c:
    ans = c
else:
    ans = can_listen

print(ans)


A, B, C = map(int, input().split())

num = int(B / A)

if num >= C:
    print(C)
elif num >= 1:
    print(num)
else:
    print('0')

A, B, C = map(int,input().split())

x = B // A
if x < C:
    print(x)
else:
    print(C)

a = input().split()
if int(int(a[1]) / int(a[0])) >= int(a[2]):
    print(a[2])
else:
    print(int(int(a[1]) / int(a[0])))

a,b,c=map(int,input().split())
if b>=a*c:
    print(c)
else:
    print(b//a)

a,b,c=map(int,input().split())
print(min(b//a,c))

a,b,c=map(int,input().split(" "))
print(min(c,b//a))