*
***
*****
*******
*********
*******
*****
***
*
import java.util.*;
public class Pattern_Diamond101
{
public static void main()
{
Scanner sc = new Scanner(System.in);
int n, i=0, j, X;
System.out.println("Enter the limit for the pattern:");
n = sc.nextInt();
for(X=1;X<2*n;X++)
{
if(X<=n)
i = X;
else
i--;
for(j=1;j<2*n;j++)
{
if(j>=n-(i-1)&&j<=n+(i-1))
{
System.out.print("*");
}
else
{
System.out.print(" ");
}
}
System.out.println();
}
}
}