101200: [AtCoder]ABC120 A - Favorite Sound

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

Takahashi likes the sound when he buys a drink from a vending machine.

That sound can be heard by spending $A$ yen (the currency of Japan) each time.

Takahashi has $B$ yen. He will hear the sound as many times as he can with that money, but at most $C$ times, as he would be satisfied at that time.

How many times will he hear the sound?

Constraints

  • All values in input are integers.
  • $1 \leq A, B, C \leq 100$

Input

Input is given from Standard Input in the following format:

$A$ $B$ $C$

Output

Print the number of times Takahashi will hear his favorite sound.


Sample Input 1

2 11 4

Sample Output 1

4

Since he has not less than $8$ yen, he will hear the sound four times and be satisfied.


Sample Input 2

3 9 5

Sample Output 2

3

He may not be able to be satisfied.


Sample Input 3

100 1 10

Sample Output 3

0

Input

题意翻译

高桥从自动售货机购买饮料时喜欢这种声音。 每次花费 $A$ 日元就可以听到这种声音。 高桥有 $B$ 日元。 他会用这笔钱听到尽可能多的声音,但最多听 $C$ 遍,那时候他会感到满意。 他会听到多少次声音?

加入题单

上一题 下一题 算法标签: