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.
['x', 'X', '31', 'X', '3017', '1247', '6707', 'K', '1371', '951', '8657', 'k', 'K', '4177', '4247']