Task: Program Execution
Input (English): 3197, O, 8317, 5051, 1141, Q, 3237, 4487, 5301
Output (English): 3197, 15, 8317, 5051, 1141, 17, 3237, 4487, 5301