Task: Program Execution
Input (English): 3, 10, ['t', 'c', '4795', 'Z', 'J', 'e', 'o', 'r', 'e', 'i', '2445', 'P', '185']
Output (English): ieroeJZ5974