Task: Program Execution
Input (English): a, j, a, 5987
Output (English): 1, 10, 1, 5987