Task: Program Execution
Input (English): G 5971 8785 5971 N 8051 p 5141 2533 8159 g 3633 g 7531 V W y 7101 w x 9131 F 7945 R 3077 5015 2237 v
Output (English): 7, 5971, 8785, 5971, 14, 8051, 16, 5141, 2533, 8159, 7, 3633, 7, 7531, 22, 23, 25, 7101, 23, 24, 9131, 6, 7945, 18, 3077, 5015, 2237, 22