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