Task: Program Execution
Input (English): 7007, 8631, N, 167, J, 5075
Output (English): 20880