Task: Program Execution
Input (English): 5, ['5145', '503', '9969', '1987', '1465', 'D', '6879', '9157', '9929', '7381', 'g', '4465', '9141', 'v', 'D']
Output (English): 5145, D, g