Task: Program Execution
Input (English): n, 2551, 4779, A, W, m, R, u, 5389, 4235, c
Output (English): 16954