Task: Program Execution
Input (English): 4, 4, ['7851', '2777', 'C', 'Y']
Output (English): 0