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.
['S', 'L', 'J', '1027', 'I', 'h', 'H', '6835', 'w', 'a', '3155', '7749', 'X', '8627', 'm']