Task: Program Execution
Input (English): 2, 3, ['5995', 'G', '3277', '9545', '8449', '9931', '5517', '8521', 'V', '8747', 'c', '4435', 'V', '9153', 'W', 'c']
Output (English): 7723G