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.
['581', 'o', 'J', '6249', 'N', '2959', 'x', 'U', '647', 'r', 'h', '2789', '7397', 'n']