Task: Program Execution
Input (English): e, 3589, 3613, W, 6889, J, 8507
Output (English): 1, 4, 6