Task: Program Execution
Input (English): 187, m, i, q, 31, h, h, i, 317, 431, 31, b, v
Output (English): 1, 3, 4, 7, 8