Task: Program Execution
Input (English): 4, 5, ['N', '1177', '8515', 'd', 'C']
Output (English): C, d