Task: Program Execution
Input (English): 7387, 5513, 4971, U, m, 2663, 1599, 7417, 6337, 3861
Output (English): 39748