#include <iostream>
using namespace std;

int main() {
    //your code goes here
		for(int i =0;i<5;i++){
		for(int j =0;j<5;j++){
			if(j>=5-i-1){
				cout<<"*";
			}
			else {
				cout<<" ";
			}
			
		}
		cout<<endl;
	}
	return 0;
}