//A116г
import java.util.*;
import java.lang.*;
import java.io.*;
class ThirdLab
{
public static void main
(String[] args
) {
Scanner input
= new Scanner
(System.
in); double x, mult = 1;
int n, k, fact = 1;
n = input.nextInt();
x = input.nextDouble();
for(k = 1; k <= n; k++)
{
fact *= k;
mult
*= 1 + (Math.
sin(k
*x
)/fact
); }
System.
out.
printf("%.4f", mult
); }
}
Ly9BMTE20LMKCmltcG9ydCBqYXZhLnV0aWwuKjsKaW1wb3J0IGphdmEubGFuZy4qOwppbXBvcnQgamF2YS5pby4qOwoKY2xhc3MgVGhpcmRMYWIKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpCgl7CgkJU2Nhbm5lciBpbnB1dCA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJZG91YmxlIHgsIG11bHQgPSAxOwoJCWludCBuLCBrLCBmYWN0ID0gMTsKCQkKCQluID0gaW5wdXQubmV4dEludCgpOwoJCXggPSBpbnB1dC5uZXh0RG91YmxlKCk7CgkJCgkJZm9yKGsgPSAxOyBrIDw9IG47IGsrKykKCQl7CgkJCWZhY3QgKj0gazsKCQkJbXVsdCAqPSAxICsgKE1hdGguc2luKGsqeCkvZmFjdCk7CgkJfQoJCQoJCVN5c3RlbS5vdXQucHJpbnRmKCIlLjRmIiwgbXVsdCk7Cgl9Cn0=