Task: Program Execution
Input (English): u, u, v, m, 4239, 1185, X, w, 7041
Output (English): 1, 2, 3, 4, 7, 8