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

Задача 27047. Number sequence - 2


Задача

Темы: Циклы
Given a natural number N, a real number A. Calculate
\(P = A \cdot (A - N) \cdot (A - 2 \cdot N) \cdot... \cdot (A - N^2)\)
 
Input
The first line contains a natural number N (0<N<=10). The second line contains a real number A (-10< ;=A<=10).


Imprint
Output number P.