Task: Program Execution
Input (English): q 9343 9489 s 6751 7151 U 5081 4195 6113 2715 c M M 9503 a 887 4737 3095 J 3595 j 6175 d 1997 7053 2347 8497 S 5585
Output (English): 17, 9343, 9489, 19, 6751, 7151, 21, 5081, 4195, 6113, 2715, 3, 13, 13, 9503, 1, 887, 4737, 3095, 10, 3595, 10, 6175, 4, 1997, 7053, 2347, 8497, 19, 5585