#include <stdio.h>
long int fac(long int i)
{
if (i==0) return 1;
if (i>=1) return i*fac(i-1);
}
void main()
{
long int n;
long int k,j,s1,s2,i;
// clrscr();
printf("%s","please input a number:");
scanf("%d",&n);
if(n%2==1)
{
k=n;
j=n-1;
}
else
{
k=n-1;
j=n;
}
s1=0;s2=0;
for(i=1;i<=k;i+=2)
{
s1+=fac(i);
}
for(i=2;i<=j;i+=2)
{
s2+=fac(i);
}
printf("%d,%d",s1,s2);
}