Task: Program Execution
Input (English): 91, m, 247, 95, d, 265, 445, g, 499, 311, 411
Output (English): 1, 2, 3, 4, 5, 6, 7, 9