A, B, C = map(int, input().split())
able = B // A
answer = min(able, C)
print(answer) A, B, C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C able = B // A able B // A B A answer = min(able, C) answer min(able, C) min able C print(answer) print answer A, B, C = map(int, input().split()) map(int, input().split()) A answer = min(able, C) min(able, C) answer B, C = map(int, input().split()) map(int, input().split()) B able = B // A B // A able C = map(int, input().split()) map(int, input().split()) C
A, B, C = map(int, input().split())
able = B // A
answer = min(able, C)
print(answer)