Problem7265--ABC274 —— A - Batting Average

7265: ABC274 —— A - Batting Average

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

There are integers A and B, which satisfy 1≤A≤10 and 00≤B≤A.
Let S be the string obtained as follows.
  • Round off $\dfrac{B}{A}$ to three decimal digits, then write the integer part (1 digit), . (the decimal point), and the decimal part (3 digits) in this order, with trailing zeros.
For example, if A=7 and B=4, then $\dfrac{B}{A} = \dfrac{4}{7} = 0.571428\dots$ rounded off to three decimal digits is 0.571. Thus, S is 0.571.
You are given A and B as the input and asked to print S.

Input

The input is given from Standard Input in the following format:
$A\ B$

Output

Print S in the format specified in the Problem Statement. 
Note that answers in different formats will be considered wrong.

Constraints

1≤A≤10
0≤B≤A
A and B are integers.

Sample 1 Input

7 4

Sample 1 Output

0.571
As explained in the Problem Statement, $\dfrac{B}{A} = \dfrac{4}{7} = 0.571428\dots$ rounded off to three decimal digits is 0.571. Thus, S is 0.571.

Sample 2 Input

7 3

Sample 2 Output

0.429
$\dfrac{B}{A} = \dfrac{3}{7}=0.428571…$ rounded off to three decimal digits is 0.429. (Note that it got rounded up.)
Thus, S is 0.429.

Sample 3 Input

2 1

Sample 3 Output

0.500

10 10

1.000

Sample 4 Input

1 0

Sample 4 Output

0.000

Source/Category