Task: Program Execution
Input (English): i, 367, m, g, t, x, r, l
Output (English): 3, 6, 7