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: ['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: ['J', 'X', '4569', '8419', 'H', '7977', 'x', 'a', 'Q', '3953', '2337', 'u', '1317', 'i', 'j', '6933', '1053', '8345', '9831', 'a', '8859', '759', 'p', 'A', '7163']

A: J, X, H, x, a, Q, u, i, j, a, p, A, 4569, 8419, 7977, 3953, 2337, 1317, 6933, 1053, 8345, 9831, 8859, 759, 7163
****
Q: ['5611', 'r', 'v', 'r', '1489', '7179', 'j', '1849', 'J', '7191', '2325', 'T', '7027', '4123', 'R', 'J', 'G', '5603', 'Y', 'b', 'A', '4771', 'm', 'h', 'w', 'b', '4111', 'I', '8223', 'k', 'F', 'Q', 'u']

A:
r, v, r, j, J, T, R, J, G, Y, b, A, m, h, w, b, I, k, F, Q, u, 5611, 1489, 7179, 1849, 7191, 2325, 7027, 4123, 5603, 4771, 4111, 8223
****