Task: Program Execution
Input (English): T, J, 1493, g
Output (English): 3