Task: Program Execution
Input (English): F, 1303, 1039, 9111, n, 309, r, 5469, 2917, Q
Output (English): 20148