Task: Program Execution
Input (English): N h H R E 8749 6919 9851 3723 p 6161 b P 4073 371 5699 m 4141 657 4957 5689 p 8457 V 707 c 3701 G
Output (English): 1, 2, 3, 4, 5, 10, 12, 13, 17, 22, 24, 26, 28