In this task, you are given an input list A. You need to find all the elements of the list that are numbers and calculate their sum.
['5303', '6707', 'G', '2843', '4771', '5995', 'U', 'p', 'L', 'A', '459', '1165']