Task: Program Execution
Input (English): n, 629, y, j, 3605, r, M, 5391, 5391, 4477, 1653, T, a, 4357
Output (English): 25503