#include #include #include #include #include using namespace std; const char rahat [][86] ={ "----|-\\-----------------------------------------------------------------------------+", " | } |", "----|-/-----------------------------------------------------|----|------------------|", " |/ 4 | | | | (@) #(@) |", "---/|-----------------------------------|----|----|----|----|----|--(@)--|----|-----|", " / | 4 | | | | | (@) #(@) | | | |", "-{--|-\\------------------|----|----|----|----|--(@)-#(@)------------|----|----|-----|", " \\_|_/ | | | | | (@) #(@) | |", "----|\\---------|----|----|----|--(@)------------------------------------------------+", " |_} | | (@) #(@) ", " (@) #(@) "}; map mp; string s; int n; vector result; int main() { // freopen("data.in", "r", stdin); mp["C"]=13; mp["C#"]=18; mp["D"]=23; mp["D#"]=28; mp["E"]=33; mp["F"]=38; mp["F#"]=43; mp["G"]=48; mp["G#"]=53; mp["A"]=58; mp["A#"]=63; mp["B"]=68; mp["C2"]=73; mp["C2#"]=78; for(int i=0; i<12; ++i) result.push_back(i); cin>>n; while(n--) { cin>>s; for(int i=0; i<5; ++i) result.push_back(mp[s]+i-1); } for(int i=82; i<85; ++i) result.push_back(i); for(int i=0; i<11; ++i) { for(int j=0; j