1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
 
using namespace std;


int main(){
    int n = 0;
    cin >> n;
    string k;
    cout << n << "F" << n << "B" << "D" << n - 1 << "E" << n - 1 << "[AC]";
    for (int i = n - 2; i > 0; i--) {
        if (i == 1) {
            cout << "DFDBD";
            return 0;
        }
        cout << i << "[DF]" << "D" << i << "B";
    }
    return 0;
}