Task: Program Execution
Input (English): Z, 5115, 6001, q, E, k
Output (English): 1, 4, 5, 6