package cruxonline.patterns;
import java.util.Scanner;
public class Pattern5 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
int row=sc.nextInt();
int str;
str=row;
for(int i=1;i<=row;i++){
if(i>1){
for(int j=1;j<i;j++){
System.out.print(" ");
}
}
for(int k=1;k<=str;k++)
System.out.print("*");
str--;
System.out.println();
}
}
}
//this code works fine but not for large row inputs like 500