#t34. 分类平均

分类平均

Averages by Class

Problem Description

Given n and k, the positive integers from 1 to n can be divided into two classes: class A consists of numbers divisible by k (i.e. multiples of k), while class B consists of the rest. Output the average of the numbers in each class, accurate to 1 decimal place, separated by a space.

The data guarantees that neither class is empty.

Input Format

Input two positive integers n and k.

Output Format

Output one line with two real numbers: the average of class A and the average of class B, respectively, accurate to 1 decimal place.

Sample Input

100 16

Sample Output

56.0 50.1

Constraints

The data guarantees 1 ≤ n ≤ 10000, 1 ≤ k ≤ 100.