Task: Program Execution
Input (English): a, 7295, 8473, 4121, 2133, 3475, r, 6803, 6859, N, 1617, D, 5311
Output (English): 46087