Task: Program Execution
Input (English): Q, 5491, 9531, 8749, 255, J
Output (English): 5491, 9531, 8749, 255