#include <stdio.h>
int main()
{
unsigned long i,n,term=1,sum=0;
printf("Please enter n:");
scanf("%lu",&n);
for(i=1; ;i++)
{
term=term*i;
sum=sum+term;
if(sum>=n)
break;
}
printf("m<=%lu\n",i-1);
}
int main()
{
unsigned long i,n,term=1,sum=0;
printf("Please enter n:");
scanf("%lu",&n);
for(i=1; ;i++)
{
term=term*i;
sum=sum+term;
if(sum>=n)
break;
}
printf("m<=%lu\n",i-1);
}