Task: Program Execution
Input (English): 2673, 1683, W, 2843, D, z
Output (English): 3, 5, 6