Task: Program Execution
Input (English): 4487 j 7771 N 287 w l s c 3285 3581 9605 9407 E d 4565 141 4599 6513 1107 9487 5509 441 i s 1329
Output (English): 4487, 10, 7771, 14, 287, 23, 12, 19, 3, 3285, 3581, 9605, 9407, 5, 4, 4565, 141, 4599, 6513, 1107, 9487, 5509, 441, 9, 19, 1329