Task: Program Execution
Input (English): 5901, w, o, 4107, X, h, g, 2949, N, f, 5759, 703
Output (English): 7