Task: Program Execution
Input (English): q, V, 8769, 7121, q, 8229, T, U, 773
Output (English): 8769, 7121, 8229, 773