Task: Program Execution
Input (English): 2, 3, ['Z', '8047', 'R', '5631', '3475', '6079', '439', 'R', '7877', '699', '9621', 'f', '8361', 'z', '3491', '3603', '9765', '6499']
Output (English): 8047, R