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: ['9415', '4357', 'u', 'j', 'X', 'N']

A: u, j, X, N, 9415, 4357
****
Q: ['Q', '9677', '7049', 'x', '2657', 't', 'E', '3041', 'a', '8583', 'G', '2573', 'q', '6853', '1231', 'R', 'R', 'P', 'H', 'r', '1463', 'O', '5837', 'D', '2711', '335', '4843', '7055', '2345', 'o', 'c', '4219', '961', 'I', 'c', 'l']

A:
Q, x, t, E, a, G, q, R, R, P, H, r, O, D, o, c, I, c, l, 9677, 7049, 2657, 3041, 8583, 2573, 6853, 1231, 1463, 5837, 2711, 335, 4843, 7055, 2345, 4219, 961
****