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]: ['4197', 'A', '29', '765', 'i', 'n', '5651']
[A]: A, i, n, 4197, 29, 765, 5651


[Q]: ['4849', 'a', 'S', '1949', '3149', 'N', 'U', 'U', 'Y', '8719', '95', 'W', 'N', 'K', 'Y', 'h', '8043', '3017', 'r', 'e', 'q', 'd', 'x', '7791', '751', 'x', '153', 'd', '7211', 'c', 'y', '3711', '6429', '3663']
[A]: a, S, N, U, U, Y, W, N, K, Y, h, r, e, q, d, x, x, d, c, y, 4849, 1949, 3149, 8719, 95, 8043, 3017, 7791, 751, 153, 7211, 3711, 6429, 3663


[Q]: ['m', 'l', '5039', 'D', 'Y', 'A', '1965', '9371', '7251', '7751', '7303', 'w', '5407', 'J', 'H', 't']
[A]:
m, l, D, Y, A, w, J, H, t, 5039, 1965, 9371, 7251, 7751, 7303, 5407