Task: Program Execution
Input (English): 3989, t, A, 8707, 4979, u, l, a, F, Z, 3013, 1009, f, b, 4245, j, 9583, M, 9307, W
Output (English): 12