Task: Program Execution
Input (English): n, J, 4743, 7737, f, S, 931, 3849, I, Q, 3571, 9367
Output (English): 30198