using System;
class Program
{
static void Main()
{
double x = 0.5; // Example value for x, you can change this as needed
double P = 1.0;
for (int n = 3; n <= 9; n++)
{
P *= (n + 2 + n * x) / (2 * n + 2);
}
Console.WriteLine("The value of P is: " + P);
}
}