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.

[Q]: ['g', 'b', 'z']
[A]: g, b, z


[Q]: ['l', '4777', '3081', '6583', '1665', '6677', '2663', 'D', 'y', 'J', '801', 'j', '5055', '2445', 'k', 'M', '7851']
[A]: l, D, y, J, j, k, M, 4777, 3081, 6583, 1665, 6677, 2663, 801, 5055, 2445, 7851


[Q]: ['y', 'o', '6393', '2395', 'y', 'M', '7197', '2153', '1971', 'm', '7981', '6617', '8341', 'G', '3591', '1069', 'a', '4423', 'm', 'w', 'S', '4851', '2331', '1751', '247', 'Z', '8375', '4255', '9269', '6313', 'r']
[A]:
y, o, y, M, m, G, a, m, w, S, Z, r, 6393, 2395, 7197, 2153, 1971, 7981, 6617, 8341, 3591, 1069, 4423, 4851, 2331, 1751, 247, 8375, 4255, 9269, 6313