Task: Program Execution
Input (English): 4, 12, ['A', '6321', '8055', '2565', 'x', '6645', '7707', 'M', 'v', 'O', '4881', 'G']
Output (English): 21798