Task: Program Execution
Input (English): 3521, 1739, N, 5745, 3515
Output (English): 14520