#include #include #include using namespace std; string data[] = { "----|-\\-----------------------------------------------------------------------------+", " | } |", "----|-/-----------------------------------------------------|----|------------------|", " |/ 4 | | | | (@) #(@) |", "---/|-----------------------------------|----|----|----|----|----|--(@)--|----|-----|", " / | 4 | | | | | (@) #(@) | | | |", "-{--|-\\------------------|----|----|----|----|--(@)-#(@)------------|----|----|-----|", " \\_|_/ | | | | | (@) #(@) | |", "----|\\---------|----|----|----|--(@)------------------------------------------------+", " |_} | | (@) #(@) ", " (@) #(@) " }; string answer[11]; string order[] = {"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C2", "C2#" }; int main() { for (int i = 0; i < 11; ++i) answer[i] += data[i].substr(0, 12); int N; cin >> N; while (N--) { string note; cin >> note; int which = find(order, order + 14, note) - order; int from = 15 + 5 * which - 3; int to = 15 + 5 * which + 1; for (int i = 0; i < 11; ++i) { answer[i] += data[i].substr(from, to - from + 1); } } for (int i = 0; i < 11; ++i) { answer[i] += data[i].substr(82, 3); cout << answer[i] << "\n"; } }