Task: Program Execution
Input (English): 5399, 6769, Q, r, r, 4919, 3931, e
Output (English): 3, 4, 5, 8