You will be given a definition of a task first, then some input of the task.
In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to collate all the alphabetical elements at the start of the list followed by all the numerical elements of the list. Maintain the order in which the alphabetical elements appear in the given input list, and do the same for the numerical elements.

['g', '7163', 'q', '5881', '4763', '8003', 'J', 'h', '6493', 'k', 'M', 'S', 'u', '2809', '2769', '2975', '9557', 's', '9489', '2045', '273', '9883', '1613', '6347', '1553', '9293', 'm', 'y', 'a', 'F', '5451', 'O', '4651', 'h']
Output:
g, q, J, h, k, M, S, u, s, m, y, a, F, O, h, 7163, 5881, 4763, 8003, 6493, 2809, 2769, 2975, 9557, 9489, 2045, 273, 9883, 1613, 6347, 1553, 9293, 5451, 4651