Task: Program Execution
Input (English): U 317 3435 z 8099 2921 M z m 8627 S X U V 8101 H O 9991 l Y X v 6265 627 G S 1601 7015 3457 O 7357 B u 9969 D v 6663 a J 4213
Output (English): 2, 3, 5, 6, 10, 15, 18, 23, 24, 27, 28, 29, 31, 34, 37, 40