import java.io.*; 
  
public class Diamond 
{ 
  public static void main(String[] argv) throws Exception 
  { 
    BufferedReader cin; 
    cin = new BufferedReader(new InputStreamReader(System.in)); 
  
    int n; // print this many rows 
    System.out.print("How many rows to print? "); 
    n = new Double(cin.readLine()).intValue(); 
    int stars = 1; 
    int skip = n - 1; 
    int i; 
    for (i = 0; i < n; i++) 
    { 
      int j; 
      for (j = 0; j < skip; j++) System.out.print(' '); 
      for (j = 0; j < stars; j++) System.out.print('*'); 
      System.out.println(); 
      stars += 2; 
      --skip; 
    } // for 
    stars = 2 * n - 3; 
    skip = 1; 
    int extraRows = n - 1; 
    for (i = 0; i < extraRows; i++) 
    { 
      int j; 
      for (j = 0; j < skip; j++) System.out.print(' '); 
      for (j = 0; j < stars; j++) System.out.print('*'); 
      System.out.println(); 
      stars -= 2; 
      ++skip; 
    } // for 
  } // main 
} // public class 
