Task: Program Execution
Input (English): 14, 17, ['F', 'w', 'r', 'u', '1051', 'B', '9551', 'B', 'W', 'c', 'N', '5757', '9595', '4899', 'e', '5377', '7447', '4579', 'P', '5875']
Output (English): 17723