import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Scanner; public class prog { public static void main(String[] args) throws java.lang.Exception { Map notes = new HashMap(); String[] notesA = new String[]{"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B", "C2", "C2#"}; for (int i = 0; i < notesA.length; i++) { notes.put(notesA[i], i); } Scanner scanner = new Scanner(System.in); Integer n = Integer.parseInt(scanner.nextLine()); List res = new ArrayList(); String s = "----|-\\-----------------------------------------------------------------------------+\n" + " | } |\n" + "----|-/-----------------------------------------------------|----|------------------|\n" + " |/ 4 | | | | (@) #(@) |\n" + "---/|-----------------------------------|----|----|----|----|----|--(@)--|----|-----|\n" + " / | 4 | | | | | (@) #(@) | | | |\n" + "-{--|-\\------------------|----|----|----|----|--(@)-#(@)------------|----|----|-----|\n" + " \\_|_/ | | | | | (@) #(@) | |\n" + "----|\\---------|----|----|----|--(@)------------------------------------------------+\n" + " |_} | | (@) #(@) \n" + " (@) #(@) "; String[] lines = s.split("\n"); for (int i = 0; i < lines.length; i++) { res.add(lines[i].substring(0, 11)); } for (int j = 0; j < n; j++) { String note = scanner.nextLine(); int idx = notes.get(note); for (int i = 0; i < lines.length; i++) { res.set(i, res.get(i)+lines[i].substring(11+idx*5, 16+idx*5)); } } for (int i = 0; i < lines.length; i++) { String substring = lines[i].substring(81, 85); res.set(i, res.get(i)+substring); System.out.println(res.get(i)); } scanner.close(); } }