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