Task: Program Execution
Input (English): n, 313, g, 6375, f, R, 4257, D, Q, j, Q, 3667, g, t, d, b, 8761
Output (English): 23373