Task: Program Execution
Input (English): 4997, 5005, 6773, q, K, 8391, 7303, K, N, 5417, 8573, z, 8653, 8343, m, L, 1587, p, 5323
Output (English): 70365