Task: Program Execution
Input (English): 3, 5, ['V', 'v', 'O', '2583', 'M', '187', 'q']
Output (English): M, 2583, O