Task: Program Execution
Input (English): 2689, Z, 8347, I, i, 1429
Output (English): 1, 3, 6