The first line contains an integer $t$: the number of musical pieces ($1 \le t \le 10^4$).

Each of the following $t$ lines contains a non-empty string $s_i$ of uppercase English letters~\mbox{A--G}: the transcription of a musical piece. The total number of letters in all transcriptions is at~most~$2 \cdot 10^5$.