#include<iostream>
#include<cmath>
using namespace std;
int main()
{
setlocale(LC_ALL , "ru");
float P = 1,M,i,r;
int k = 2;
cout << "Введите число М" << endl;
cin >> M;
do
{
int f=1;
for ( f,i = 1; i <= 2 * k + 1; i++)f *= i;
float t=1;
for (t, i = 1; i <= k - 1; i++)t *= i;
r = f / t;
P*= r;
k++;
} while (r <= M);
{
cout << P << endl;
return 0;
}