#include <iostream> #include<string> using namespace std; int main() { int N; int count = 0; cin >> N; string s; cin.ignore(); getline(cin, s); int n = N / 3; for (int i = 0; i < n; i++) { for (int j = 0; j < i; j++) { cout << ' '; } cout << s[count++]; for (int j = 0; j < 2 * (n - i) - 1; j++) { cout << ' '; } cout << s[count++] << endl; } for (int i = count; i < N; i++) { for (int j = 0; j < n; j++) { cout << ' '; } cout << s[i] << endl; } return 0; }