Task: Program Execution
Input (English): u, 7583, k, 7827, 3647, 2947, 4039, Z
Output (English): 2, 4, 5, 6, 7