Task: Program Execution
Input (English): 4021, M, a, f, 7289, 8167, 3743, 2997, 5021, V, 3869, 9809, 1907, 9397, B, j, 8175, F, 9179
Output (English): 12