AtCoder Beginner Contest 120
A
Favorite Sound
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

样例

Input #1
2 11 4
Output #1
4
Since he has not less than $8$ yen, he will hear the sound four times and be satisfied.
Input #2
3 9 5
Output #2
3
He may not be able to be satisfied.
Input #3
100 1 10
Output #3
0
题目信息
题号
abc120_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。