#include <iostream>
#include <string>
using namespace std;
void solve(string s, int n=0)
{
if(s.size() > 0)
{
solve(s.substr(0, s.size() - 1), n + 1);
cout << string(n, ' ') << s << endl;
}
}
int main(){
int n;
cin >> n;
solve(string(n, '#'));
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnZvaWQgc29sdmUoc3RyaW5nIHMsIGludCBuPTApCnsKICAgIGlmKHMuc2l6ZSgpID4gMCkKICAgIHsKICAgICAgICBzb2x2ZShzLnN1YnN0cigwLCBzLnNpemUoKSAtIDEpLCBuICsgMSk7CiAgICAgICAgY291dCA8PCBzdHJpbmcobiwgJyAnKSA8PCBzIDw8IGVuZGw7CiAgICB9Cn0KIAppbnQgbWFpbigpewogICAgaW50IG47CiAgICBjaW4gPj4gbjsKICAgIHNvbHZlKHN0cmluZyhuLCAnIycpKTsKICAgIHJldHVybiAwOwp9