Task: Program Execution
Input (English): 47, 487, 83, p, i, 173, 343, r, 21, m
Output (English): 1, 2, 3, 4, 7, 8