Task: Program Execution
Input (English): 191, m, g, 251, 63, 291, v, f, 347
Output (English): 1, 2, 3, 4, 5, 6, 7, 9