Definition: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to return the position of all the numerical elements in the given list in order. Assume the position of the 1st element to be 1. Return -1 if no numerical element is in the list.
Input: ['f', 'U', '4171', 'm', '6887', 'Q', 'l', 'n', '2207', '5929', 'D', '4999', 'e', 'd', 'T', 'S', '5173', '8819', '1873', 'T', '645', 'f', 'q', '2785', '3381', '8319', '6727', 'h', 'w', 'f', 'j', 'w', 'K', 'y', '6035', 'L', '7151', 'S', '4763']
Output:
3, 5, 9, 10, 12, 17, 18, 19, 21, 24, 25, 26, 27, 35, 37, 39