Task: Program Execution
Input (English): a 5023 27 c T w 9931 7003 i 5745 O V 7959 9445 1579 7189 V 1255 6835 m r 2807 1345 6029 9955 9367 q 4935 3889 9625 p Q 6357 7759 4041 5559 8261 O 3949
Output (English): 1, 4, 5, 6, 9, 11, 12, 17, 20, 21, 27, 31, 32, 38