Task: Program Execution
Input (English): a, D, V, K, 3623, t, 5251, 3393, 747, 1795, 5107, X
Output (English): 6