Task: Program Execution
Input (English): q, a, 1341, 6669, 5907, 7553, w, 3099, 8279, 5529, 9991, R
Output (English): 1, 2, 7, 12