Task: Program Execution
Input (English): 7177, 1627, Q, F, 9795, 1285, U, 6961
Output (English): 3