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.
['N', '7503', '173', '7477', '851', 't', 'f', 'c', '1161', '829', '9017', 'S', '8271']