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

res = B//A

if res >= C:
    print(C)
else:
    print(res) 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 res = B//A res B//A B A if res >= C:
    print(C)
else:
    print(res) res >= C res C print(C) print C print(res) print res A,B,C = list(map(int, input().split())) list(map(int, input().split())) A C = list(map(int, input().split())) list(map(int, input().split())) C res = B//A B//A res B,C = list(map(int, input().split())) list(map(int, input().split())) B
A,B,C = list(map(int, input().split()))

res = B//A

if res >= C:
    print(C)
else:
    print(res)