Serval is fighting with a monster. The health of the monster is H. In one attack, Serval…
- User
Serval is fighting with a monster.
The health of the monster is H.
In one attack, Serval can decrease the monster's health by A. There is no other way to decrease the monster's health.
Serval wins when the monster's health becomes 0 or below.
Find the number of attacks Serval needs to make before winning.
Constraints
- 1 \leq H \leq 10^4
- 1 \leq A \leq 10^4
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
H A
Output
Print the number of attacks Serval needs to make before winning.
Examples
Input
10 4
Output
3
Input
1 10000
Output
1
Input
10000 1
Output
10000
Assistant
python# Read the input values H, A = map(int, input().split()) # Calculate the number of attacks needed using ceiling division attacks = (H + A - 1) // A # Output the result print(attacks)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.