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.
['3969', '2739', '8371', 'd', 'h', '2317', '859', '2077', '241', 'X', 'o', 'p', '9787', '2239', 'M', 'Z']