Task: Program Execution
Input (English): 1787 1395 h l T I H V 4751 3643 2965 963 M 7987 n k z 3639 H 5987 4861 1059 7885 6233 4739 5871 3783 9027
Output (English): 1, 2, 9, 10, 11, 12, 14, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28