Task: Program Execution
Input (English): q, Q, J, A, 1581, a, 569, b
Output (English): 1, 2, 3, 4, 6, 8