Task: Program Execution
Input (English): 77 P 5711 M 9721 1767 8775 J Y 7463 c E J 2589 Q e X N D z K T 7389 4483 f 7723 7995 729 l t j 353 H 4787 6627 4747 Q
Output (English): 77, 16, 5711, 13, 9721, 1767, 8775, 10, 25, 7463, 3, 5, 10, 2589, 17, 5, 24, 14, 4, 26, 11, 20, 7389, 4483, 6, 7723, 7995, 729, 12, 20, 10, 353, 8, 4787, 6627, 4747, 17