Task: Program Execution
Input (English): 5359, N, 7405, 2969, J
Output (English): 15733