Task: Program Execution
Input (English): z, 5401, J
Output (English): 2