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: ['7643', '1863', 'D', '2397', 'Y', 'A', 'd', '8747', 'D', 'O', '7995', '8713', '2757', '3379', '5481', '3891', '6383', '8981', 'N', '2679', 'O', '5435', '5619', 'g', '4561', 'm', 'T', '2791', 'Q', '2441', '1601', 'K', '5897', '7117', '4835']

A: D, Y, A, d, D, O, N, O, g, m, T, Q, K, 7643, 1863, 2397, 8747, 7995, 8713, 2757, 3379, 5481, 3891, 6383, 8981, 2679, 5435, 5619, 4561, 2791, 2441, 1601, 5897, 7117, 4835
****
Q: ['7407', '9439', 'U', '5683', 'J', '6189', '6435', 'M', '6159', '8827', '2051', '1953', 'H', '5143', '7409', 'F', '3141', '1403', '7981']

A: U, J, M, H, F, 7407, 9439, 5683, 6189, 6435, 6159, 8827, 2051, 1953, 5143, 7409, 3141, 1403, 7981
****
Q: ['b', '7617', 'q', '4515', 'x', 'C', '8255', 'D', 'H', 'X', '9583', 'A', 'g', 'J', '4075', 'n', 'm', '8117', '6991', '6105', 'W', 'v', 'T', '7091', '2941', 'K', 'O', '351', 'b', 'd', 'T', '7679', 'u', 'n', 'k']

A:
b, q, x, C, D, H, X, A, g, J, n, m, W, v, T, K, O, b, d, T, u, n, k, 7617, 4515, 8255, 9583, 4075, 8117, 6991, 6105, 7091, 2941, 351, 7679
****