Task: Program Execution
Input (English): 4781 1065 J 5609 6059 7951 W A 6089 5589 8079 5333 7707 3553 419 v S 7161 p d 5729 3121 F 4963 8847 g P 1893 9339
Output (English): 4781, 1065, 10, 5609, 6059, 7951, 23, 1, 6089, 5589, 8079, 5333, 7707, 3553, 419, 22, 19, 7161, 16, 4, 5729, 3121, 6, 4963, 8847, 7, 16, 1893, 9339