Task: Program Execution
Input (English): 4, 6, ['X', '7577', 'N', 'F', '2783', 'a', 'u', 'R', '9877', 'x', 'f', 'J', '6343']
Output (English): 2783