Task: Program Execution
Input (English): 2, 12, ['5051', 'H', '8363', 'C', '3157', '6363', '4259', 'S', '965', '6725', '8773', '9293', '9569', '8347', '6383', '9491']
Output (English): 392937785276569S952436367513C3638H