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())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split b c sound_max = b//a sound_max b//a b a if c >= sound_max:
    print(sound_max)

elif c <= sound_max:
    print(c) c >= sound_max c sound_max print(sound_max) print sound_max elif c <= sound_max:
    print(c) c <= sound_max c sound_max print(c) print c c = list(map(int,input().split())) list(map(int,input().split())) c b,c = list(map(int,input().split())) list(map(int,input().split())) b sound_max = b//a b//a sound_max a,b,c = list(map(int,input().split())) list(map(int,input().split())) 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)


