Task: Program Execution
Input (English): n, 6729, p, D, o, 1213, e, 6951, 2341, 9997, e, M, x, R
Output (English): 27231