Task: Program Execution
Input (English): J, a, A, 655, z, B
Output (English): 655