Task: Program Execution
Input (English): 8041, 3881, q, E, 9259, 3699, K, 9307, L, 1079, 395, 1323, 7335
Output (English): 4