Task: Program Execution
Input (English): 6297, W, W, 5395, 9001, i, b, d, f, 8199, 3389, 8843, 8129, 9701, 7157, H, f, 1095, n, c, k, 5097, 947
Output (English): 12