Task: Program Execution
Input (English): 5, 7, ['F', 'A', '3141', '1561', 'z', '8851', '7485', '2071', 's', '6483', '1377']
Output (English): 16336