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: ['2417', 's', '5821', '1017', 'P']

SOLUTION: 2417, 5821, 1017

PROBLEM: ['p', '2559', 'o', 'l', '537', '9693', 's', '7301', 'q', '8957', '2901', '6287', 'I', '4389', 'h', 'm', '471', '3145', 'l', '9377', '6309', 'Y', 'M']

SOLUTION: 2559, 537, 9693, 7301, 8957, 2901, 6287, 4389, 471, 3145, 9377, 6309

PROBLEM: ['5149', 'l', '8975', '4397']

SOLUTION:
5149, 8975, 4397