Task: Program Execution
Input (English): 2723, 2565, d, Z, 2409, X
Output (English): 3, 4, 6