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]: ['8817', 'm', '1795', 'q', '2999', 'i', 'n', '5895', '6609', '901', '4099', '5973', 'M', 'j', '5867', '6035', '9425', '3401', '2677', '8939', 'v', 'y', 'S', 'X', '1411', '5595', 'm', '1871']
[A]: m, q, i, n, M, j, v, y, S, X, m, 8817, 1795, 2999, 5895, 6609, 901, 4099, 5973, 5867, 6035, 9425, 3401, 2677, 8939, 1411, 5595, 1871


[Q]: ['S', 'a', '6301', '8377', 'H', '8191', '9593', 'b', 'k', '2015', 'J', 'r', 'L', '8157', '4029', '6339', '2587', '6137', 'p', 'y', 'U', '4239', 'C', '159', '5927', '9739', 'o', 'g', '783', 'p', '2029', '8631', '5943', 'J', 'J', 'y', 'E', 'q', 'G', 'I']
[A]: S, a, H, b, k, J, r, L, p, y, U, C, o, g, p, J, J, y, E, q, G, I, 6301, 8377, 8191, 9593, 2015, 8157, 4029, 6339, 2587, 6137, 4239, 159, 5927, 9739, 783, 2029, 8631, 5943


[Q]: ['U', 'r', 'w', 'q', 'z', 'n', 'n', 'B', '8177', '6495', 'G', '8837', 'x', '6205', 'k']
[A]:
U, r, w, q, z, n, n, B, G, x, k, 8177, 6495, 8837, 6205