Task: Program Execution
Input (English): 5831, k, w, z, 5163, 7731, 9739
Output (English): 1, 5, 6, 7