Task: Program Execution
Input (English): 2413, 5479, 6259, R, 3239, M, m, l, A, 3477, U, 4455, t, q, W, o, w, 5801
Output (English): 31123