Task: Program Execution
Input (English): s, 387, e, 201, k, q, m
Output (English): 0, 1, 2, 3, 7, 8