Task: Program Execution
Input (English): l 1063 W 6057 M A 311 37 9333 o S 7123 e C n 4579 2417 A 9043 5161 h d 6049 91 4733 t D 1857
Output (English): 14