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.
Input: ['Z', 'Z', 'H', '4241', '1651', '5941', 'b', '817', 'p', '2041', 'U', 'i', 'u', '5313', 'r', 'J', '845', '4277', '4487', '2991', '7473', '8749', 'H', '1195', 'b', 'z', 'u', 'J']
Output:
4241, 1651, 5941, 817, 2041, 5313, 845, 4277, 4487, 2991, 7473, 8749, 1195