Task: Program Execution
Input (English): 1, 3, ['Z', 'K', '3919', 'z', '9655', '5759', 'x', 'M', '1731', 'Z', '8763', '977', 'J']
Output (English): 3919KZ