Task: Program Execution
Input (English): A, j, m, 5159, 8971, 4351, 5869, 8061
Output (English): 1, 10, 13, 5159, 8971, 4351, 5869, 8061