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



sound_max = b//a



if c >= sound_max:

    print(sound_max)



elif c <= sound_max:

    print(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()))
sound_max = b // a
if c >= sound_max:
    print(sound_max)
elif c <= sound_max:
    print(c)

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

-sound_max = b // a -if c >= sound_max: -    print(sound_max) -elif c <= sound_max: +if b // a >= c: +else: +    print((b // a))