Task: Program Execution
Input (English): 2, 7, ['t', 'Q', 'M', '9857', '1691', '7047', 'o']
Output (English): o704716919857MQ