TASK DEFINITION: In this task, you are given an input list A. You need to find all the elements of the list that are numbers in the same order as they appear in the list A.
PROBLEM: ['4031', '3981', '6419', 'g', '1599', 'X']

SOLUTION: 4031, 3981, 6419, 1599

PROBLEM: ['I', 'F', 'f', 'O', '2417']

SOLUTION: 2417

PROBLEM: ['F', 'P', '8623', '2541', 'c', '4997', 'i']

SOLUTION:
8623, 2541, 4997