Task: Program Execution
Input (English): V, 1653, 2145, q, 1313, 9523, 5721, k, Q, G
Output (English): 5