Олимпиадный тренинг

Задача 6005. Array filling - 3


The first line contains a non-negative number N - the number of array elements (1<=N<=100)
The second line contains two numbers: the number A is the value of the first element of the array, the number p is the quotient of dividing the current element of the array by the next one (geometric progression) - p>0
Array elements are fractional numbers
Fill the array with the elements of this progression and display it on the screen (all elements are displayed on the screen with an accuracy of up to 6 decimal places)

PLEASE NOTE: The task must use an array, and not just display numbers on the screen. The task will be checked manually after automatic checking!

Sample input and output
Test number Input Output
1 5
7 3
7.000000 2.333333 0.777778 0.259259 0.086420