Task: Program Execution
Input (English): 5259, 3191, Y, 9847, c, 5819, w, W, 4481, X, c
Output (English): 5