per_price, takahashi_all_money, count_satisfied_sound = map(int, input().split())

need_money_of_satisfied = count_satisfied_sound * per_price

if takahashi_all_money >= need_money_of_satisfied:
    print(count_satisfied_sound)
elif takahashi_all_money < need_money_of_satisfied:
    print(takahashi_all_money // per_price) per_price, takahashi_all_money, count_satisfied_sound = map(int, input().split()) per_price map(int, input().split()) map int input().split() ().split () input split takahashi_all_money count_satisfied_sound need_money_of_satisfied = count_satisfied_sound * per_price need_money_of_satisfied count_satisfied_sound * per_price count_satisfied_sound per_price if takahashi_all_money >= need_money_of_satisfied:
    print(count_satisfied_sound)
elif takahashi_all_money < need_money_of_satisfied:
    print(takahashi_all_money // per_price) takahashi_all_money >= need_money_of_satisfied takahashi_all_money need_money_of_satisfied print(count_satisfied_sound) print count_satisfied_sound elif takahashi_all_money < need_money_of_satisfied:
    print(takahashi_all_money // per_price) takahashi_all_money < need_money_of_satisfied takahashi_all_money need_money_of_satisfied print(takahashi_all_money // per_price) print takahashi_all_money // per_price takahashi_all_money per_price per_price, takahashi_all_money, count_satisfied_sound = map(int, input().split()) map(int, input().split()) per_price need_money_of_satisfied = count_satisfied_sound * per_price count_satisfied_sound * per_price need_money_of_satisfied takahashi_all_money, count_satisfied_sound = map(int, input().split()) map(int, input().split()) takahashi_all_money count_satisfied_sound = map(int, input().split()) map(int, input().split()) count_satisfied_sound
per_price, takahashi_all_money, count_satisfied_sound = map(int, input().split())

need_money_of_satisfied = count_satisfied_sound * per_price

if takahashi_all_money >= need_money_of_satisfied:
    print(count_satisfied_sound)
elif takahashi_all_money < need_money_of_satisfied:
    print(takahashi_all_money // per_price)