# A - Favorite Sound
# https://atcoder.jp/contests/abc120/tasks/abc120_a

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

count = b // a

if count > c:
    count = c

print(count) a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c count = b // a count b // a b a if count > c:
    count = c count > c count c count = c count c print(count) print count a, b, c = map(int, input().split()) map(int, input().split()) a c = map(int, input().split()) map(int, input().split()) c b, c = map(int, input().split()) map(int, input().split()) b count = b // a b // a count count = c c count
# A - Favorite Sound
# https://atcoder.jp/contests/abc120/tasks/abc120_a

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

count = b // a

if count > c:
    count = c

print(count)
