Task: Program Execution
Input (English): J, 3197, t, 9705
Output (English): 12902