Task: Program Execution
Input (English): 8367, J, 4003, T, m
Output (English): 12370