Task: Program Execution
Input (English): Q, 6193, U, n
Output (English): 1, 3, 4