Task: Program Execution
Input (English): 3797, z, 8007, w, s, 2077, 243, 9787, F, 7625, w, 8873, k, 6533
Output (English): 46942