Task: Program Execution
Input (English): 3341, 5031, 4527, 5365, 3243, 5739, 8597, p, 1059, a, 4909, 5531, 4019, 7757, 9967, 4617, q, 775
Output (English): 15