Task: Program Execution
Input (English): 7815, 693, 8283, E, N, 5977, 7527, 6655
Output (English): 36950