Task: Program Execution
Input (English): 12, 18, ['F', '6107', '2349', '7531', '431', 'k', 'l', '7865', 't', '4317', '9453', '1881', '7059', '4053', '4149', '9109', 'l', 'B']
Output (English): 26251