Task: Program Execution
Input (English): Z, 791, 9125, N, W, K, 6523, 6175, a, L
Output (English): 1, 4, 5, 6, 9, 10