Task: Program Execution
Input (English): 4, 6, ['1399', 'd', 'X', '4795', 'H', 'R']
Output (English): 4795HR