Task: Program Execution
Input (English): J, 6529, 9787, 2833, S
Output (English): 1, 5