Task: Program Execution
Input (English): Z, 9943, X, 9015, M, 5103, N, x, n
Output (English): 24061