Task: Program Execution
Input (English): J, T, 7789, J, 407, 3639, L, B, 9759, Z, W, j, 1709, x
Output (English): 3, 5, 6, 9, 13