Task: Program Execution
Input (English): 5981, R, 487, 3271, 8129, 5945, 7179, x, r, 7547, 8983, u, 2153, 2059, 5815, m, 2655, 5811
Output (English): 2, 8, 9, 12, 16