Task: Program Execution
Input (English): x, 3701, 5763, 4077, R, 2985, 9861, J, d, m, 1919, 9909
Output (English): 2, 3, 4, 6, 7, 11, 12