Task: Program Execution
Input (English): 4739, g, h, 4745, U, m, 9125, 4341, 115, 5429, 3203, a, S, 883, p, c, 5047, 2383, 2417, 8935, 149, c, 6531
Output (English): 14