Task: Program Execution
Input (English): m, 65, g, 31, w, 483, n
Output (English): 1, 3, 4, 5, 6, 8