#include <iostream>#include <cmath>int main() { int n; double x, f = 1, p = 1; std::cin >> n >> x; for (int i = 1; i <= n; ++i) { f *= i; p *= (1 + sin(i * x) / f); } std::cout << p << '\n'; return 0;}