Task: Program Execution
Input (English): m, r, i, m, 71, q, n, x, 281, 351
Output (English): 1, 2, 3, 5, 7, 8