Task: Program Execution
Input (English): l H Q 8897 s N 5461 5405 6783 3161 6669 Y 3237 L 8991 4355 4325 J P M i r 9135 6051 5353 9779 V
Output (English): 12, 8, 17, 8897, 19, 14, 5461, 5405, 6783, 3161, 6669, 25, 3237, 12, 8991, 4355, 4325, 10, 16, 13, 9, 18, 9135, 6051, 5353, 9779, 22