Task: Program Execution
Input (English): j, 1701, h, n, 8995, m
Output (English): 1, 3, 4, 6