Task: Program Execution
Input (English): L 3749 Q o B K 1717 U 353 K 5063 K t o 7681 9215 I 5171 U 7411 Q 1055 2417 9381 D 5499 7315 N N 9067
Output (English): 14