#include <stdio.h>
int fact(int n)
{
int fact=1,i;
for(i=1;i<=n;i++)
fact=fact*i;
return fact;
}
int comb(int n,int r)
{
return fact(n)/(fact(n-r)*fact(r));
}
int main(void)
{
int i,j,n;
for(i=1;i<=n;i++)
{
int flag=1;
int r=0;
for(j=1;j<=2*n-1;j++)
{
if(j>=n+1-i && j<=n-1+i && flag)
{
flag=0;
r++;
}
else
{
flag=1;
}
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBmYWN0KGludCBuKQp7CglpbnQgZmFjdD0xLGk7Cglmb3IoaT0xO2k8PW47aSsrKQoJCWZhY3Q9ZmFjdCppOwoJcmV0dXJuIGZhY3Q7Cn0KCmludCBjb21iKGludCBuLGludCByKQp7CglyZXR1cm4gZmFjdChuKS8oZmFjdChuLXIpKmZhY3QocikpOwp9CgppbnQgbWFpbih2b2lkKSAKewoJaW50IGksaixuOwoJcHJpbnRmKCJFbnRlciBuOiBcbiIpOwoJc2NhbmYoIiVkIiwmbik7Cglmb3IoaT0xO2k8PW47aSsrKQoJewoJCWludCBmbGFnPTE7CgkJaW50IHI9MDsKCQlmb3Ioaj0xO2o8PTIqbi0xO2orKykKCQl7CgkJCWlmKGo+PW4rMS1pICYmIGo8PW4tMStpICYmIGZsYWcpCgkJCXsKCQkJCXByaW50ZigiJWQgICIsY29tYihpLTEscikpOwoJCQkJZmxhZz0wOwoJCQkJcisrOwoJCQl9CgkJCWVsc2UKCQkJewoJCQkJcHJpbnRmKCIgICAiKTsKCQkJCWZsYWc9MTsKCQkJfQoJCX0KCQlwcmludGYoIlxuIik7Cgl9CglyZXR1cm4gMDsKfQo=