Task: Program Execution
Input (English): i, a, x, 13, 1673, 4315, 1349, v, x, 3043, q, A, 4653
Output (English): 6