Task: Program Execution
Input (English): P N 1295 Z 7231 5821 q 2367 649 6279 3507 I j 2071 7163 J 6219 2731 J L 1265 3239 v A 7263 8357 5069 f h
Output (English): 1295, 7231, 5821, 2367, 649, 6279, 3507, 2071, 7163, 6219, 2731, 1265, 3239, 7263, 8357, 5069