Task: Program Execution
Input (English): R, m, 9395, 8267, j, h, I, f, I, w, b, H, z, 6423, 9717, H, u, 5119, a, Q, D
Output (English): 3, 4, 14, 15, 18