Task: Program Execution
Input (English): i, d, 5267, 417, 4327, 5713, B
Output (English): 15724