Task: Program Execution
Input (English): K, D, T, c, n, 8121, j, F, 8979, F, 7967, 1333, 8051, 461
Output (English): 6