Method of linear transformation#5232

Method of linear transformation

0.5 seconds
16 megabytes
Very easy

Watson is working on a task involving the analysis of signals. He needs to process signals using mathematical techniques. He applies a linear transformation method to the signal. The shape of the signal can be described by the formula:

,

where \Psi(x') is a function that describes the position and intensity of particular components of the signal—a Gaussian function describing the shape and width of particular spectral lines. The coefficients and are provided as input to Watson, and the coefficient is calculated using the following formula:

The function definition for can be given in this way: , where the Fourier transform of the function is calculated as: .

To perform precise computations in signal analysis, Watson needs to know the numerical value of the coefficient .

Input

The only line of input contains two positive numbers and , each not exceeding .

Output

You need to print the coefficient with digits after the decimal point.

Examples

Example 1

Loading
Loading