Teacher: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.
Teacher: Now, understand the problem? Solve this instance: ['m', 'd', '3985', '791', '4917', 'C', '533', 'l', '4219', '7017', '7435', '221', 'w', 'x', '5491']
Student:
3985, 791, 4917, 533, 4219, 7017, 7435, 221, 5491