Task: Program Execution
Input (English): 61, q, g, i, i, 471, 221, m
Output (English): 1, 2, 4, 6, 7