Task: Program Execution
Input (English): 4, ['5823', '189', 'R', '6673', '1685', '4949', '99', '3061', 'd', '1497', 'b', '1405', '1357', '2877']
Output (English): 5823, 1685, d, 1357