Task: Program Execution
Input (English): 5805, 1421, q, Q, 9067
Output (English): 1, 2, 5