#include #include #include #include #include #include #include #include #include #include #define in cin #define out cout #define abs(x) ((x>0)?(x):(-(x))) #define max(a,b) ((a)>(b)?(a):(b)) #define min(a,b) ((a)<(b)?(a):(b)) #define FOR(i, a, b) for(int i = a; i <= b; ++i) #define DOWNFOR(i, a, b) for(int i = a; i >= b; --i) #define FOREACH(i, t) for (typeof(t.begin()) i = t.begin(); i != t.end(); ++i) using namespace std; typedef long long ll; const string m[]={ "----|-\\-----------------------------------------------------------------------------+", " | } |", "----|-/-----------------------------------------------------|----|------------------|", " |/ 4 | | | | (@) #(@) |", "---/|-----------------------------------|----|----|----|----|----|--(@)--|----|-----|", " / | 4 | | | | | (@) #(@) | | | |", "-{--|-\\------------------|----|----|----|----|--(@)-#(@)------------|----|----|-----|", " \\_|_/ | | | | | (@) #(@) | |", "----|\\---------|----|----|----|--(@)------------------------------------------------+", " |_} | | (@) #(@) ", " (@) #(@) " }; const string muie[]={"C","C#","D","D#","E","F","F#","G","G#","A","A#","B","C2","C2#"}; string ans[20]; void cpy(int x,int y){ FOR(i,x,y){ FOR(j,0,10){ ans[j]+=m[j][i]; } } } int main(){ #ifndef ONLINE_JUDGE ifstream in("test.in"); ofstream out("test.out"); #endif int n;in>>n; cpy(0,11); FOR(k,1,n){ string p; in>>p; int f; FOR(i,0,13) if(p==muie[i]) f=i; int px=12+f*5; int py=px+4; cpy(px,py); } cpy(m[0].size()-3,m[0].size()-1); FOR(i,0,10) out<