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.
['2789', '1019', 'A', '6825', '1063', '8651', 'w', 'f', '9527', 'A', '5935', 'S']