#abc274a. [abc274_a]Batting Average
[abc274_a]Batting Average
Problem Statement
Takahashi is making a computer baseball game.
He will write a program that shows a batter's batting average with a specified number of digits.
There are integers and , which satisfy and .
Let be the string obtained as follows.
- Round off to three decimal digits, then write the integer part ( digit),
.
(the decimal point), and the decimal part ( digits) in this order, with trailing zeros.
For example, if and , then rounded off to three decimal digits is . Thus, is 0.571
.
You are given and as the input and asked to print .
Constraints
- and are integers.
Input
The input is given from Standard Input in the following format:
Output
Print in the format specified in the Problem Statement. Note that answers in different formats will be considered wrong.
Sample Input 1
7 4
Sample Output 1
0.571
As explained in the Problem Statement, rounded off to three decimal digits is . Thus, is 0.571
.
Sample Input 2
7 3
Sample Output 2
0.429
rounded off to three decimal digits is . (Note that it got rounded up.)
Thus, is 0.429
.
Sample Input 3
2 1
Sample Output 3
0.500
rounded off to three decimal digits is again .
Thus, is 0.500
. Note that it must have three decimal places.
Sample Input 4
10 10
Sample Output 4
1.000
Sample Input 5
1 0
Sample Output 5
0.000