Forest
Morning in a pine forest. 1889. Perhaps the most popular painting Shishkin - "Morning in a pine forest". In it he seeks to convey the charm of untouched wilderness, poetiziruya life of the forest.
Bears written by another artist, K.A.Savitsky. They turned out so well that even Sawicki signed with Shishkin in the picture. However, P.M.Tretyakov, buying a painting, took off his signature. It approved the authorship of one Shishkin. Indeed, in the film, said Patron, "ranging from design and ending with the execution, said all manner of painting, creative method, peculiar to Shishkin".
Consider a simple model of tree growth in a pine forest. All trees are divided into four groups: young seedlings (age group 0 to 15 years), young trees (16 to 30 years), middle-aged trees (from 31 to 45 years) and old (over 45). The duration of one time period is 15 years. In the problem is necessary to determine quantitative changes in populations of trees if:
1. A certain percentage of each group of trees are killed;
2. Surviving trees of one group moving into the next age group. Old trees are old;
3. Dead trees are replaced by young saplings. Thus, the number of trees in the forest remains intact.
It is known that the original forest is composed of n young seedlings. Known percentage of trees that die over a period of time in each age group: p_baby, p_young, p_{middle-age}, p_old. Necessary to determine the average number of trees in each group after 15k years.
Input
Each line is a separate test and contains 6 integer values: n (10 < n < 100000), k (1 ≤ k ≤ 100), p_baby_{,} p_young, p_{middle-age}, p_old. (0 ≤ p_baby, p_young, p_{middle-age}, p_old ≤ 100).
Output
For each test, bring in a separate row 4 of the value - the average number of trees in each group over 15k years. All the numbers show a 6 characters after the decimal point.