#include <bits/stdc++.h>
using namespace std;
int main()
{
char d;
cin >> d;
cout << " " << d << endl;
cout << " " << d << d << d << endl;
cout << d << d << d << d << d << endl;
cout << " " << d << d << d << endl;
cout << " " << d << endl;
return 0;
}