Task: Program Execution
Input (English): 1017, a, A, 8267, 8601, 4605, d, 8031, 4395, Q, 995
Output (English): 4