Task: Program Execution
Input (English): 6149, q, 7467, 9999, e, D, 2817, 4445, 1655, 4433, 5053, Q, 8499, 9897, X
Output (English): 2, 5, 6, 12, 15