Task: Program Execution
Input (English): X, 1613, 277, 497, X, 7861, r, 9017, 4337, Z, 8177, 7999, Q, 1365, 4279, 2845, D, 111, 5885, 3737, 7105
Output (English): 6