Task: Program Execution
Input (English): 7889, 5903, 9199, J, R, 8907, 6899, J, i, G, E, 7949
Output (English): 46746