Task: Program Execution
Input (English): 8677 H T A U 7487 q C 2783 6797 1833 i T m P 6469 8765 t C 475 7047 3437 W 361 4363 4959 H 4857 3165 1699 v c 8873 F m
Output (English): 18