Task: Program Execution
Input (English): Z, 9671, 3865, u, v, 6083, K, 5317, a, 3345, 283, 8491, 4851
Output (English): 1, 4, 5, 7, 9