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.
--------
Question: ['9731', 'W', '5347', '8895', 'Y', 'H', 'X', '207', 'a', '9737', 'q', 'q', '1717', 'Y', '2329', '427', '5513', '905', 'r', 'H', 'S', '5043', 'c', 'E', '7305', 'r', '2043', 'w']

Answer: W, Y, H, X, a, q, q, Y, r, H, S, c, E, r, w, 9731, 5347, 8895, 207, 9737, 1717, 2329, 427, 5513, 905, 5043, 7305, 2043


Question: ['Y', 'k', '2219', 'e', 'X', '9837']

Answer: Y, k, e, X, 2219, 9837


Question: ['1019', '2897', 's', 'Q', 'c', 'P', '3751', '4189', '1243', 'X', '2451', '1621', 'd', 'A', 'B', '3373', '6663', 'B', '355', 'e', 'J', 'w', '7747', 'o', 'X', '5691', 'o', 'G', '5365', 'e', '6817', 'd', '6785', '6531', 'p', 'w', '3791', '1113']

Answer:
s, Q, c, P, X, d, A, B, B, e, J, w, o, X, o, G, e, d, p, w, 1019, 2897, 3751, 4189, 1243, 2451, 1621, 3373, 6663, 355, 7747, 5691, 5365, 6817, 6785, 6531, 3791, 1113