Task: Program Execution
Input (English): n, 3, e, w, 123, 381, i, r, j, k, 103, y, 55, 317
Output (English): 0, 1, 2, 3, 5, 7, 8