Task: Program Execution
Input (English): 4, 7, ['P', '6039', '1313', '3367', 'Z', '7947', '1841', '1671', 'a', 'K', '8223', 'H', '6771', '263']
Output (English): 14817497Z7633