Task: Program Execution
Input (English): E, C, 1301, 1587
Output (English): 2