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: ['z', '8187', '4529', '1919', 'P', 'z', '1201', '1097', '6543', '3119', '2985', '9259', '2779', '1863', 'c', '361', '5583', '1255', 'Z', 'B', 'E', '4107', 'B', 't', '8595', 't', 't', '8349', 'Z', 'G', 't', 'U', 'M', '5879', '9917', '6685', '5647']

A: z, P, z, c, Z, B, E, B, t, t, t, Z, G, t, U, M, 8187, 4529, 1919, 1201, 1097, 6543, 3119, 2985, 9259, 2779, 1863, 361, 5583, 1255, 4107, 8595, 8349, 5879, 9917, 6685, 5647
****
Q: ['s', 'a', '3831', 'g', 'A', 'Q', '3519', 'K', '8039', '5871', 'j', 'B', 'D', 'd', '8145', 'y', 'q', 'B', '3619', 'b', '7995', 'T', 'M', '5845', '2437', '3187', 'b', 'X', 's', '8255', 'w', '4059', 'o', 'w', 'e', '3169', '187']

A:
s, a, g, A, Q, K, j, B, D, d, y, q, B, b, T, M, b, X, s, w, o, w, e, 3831, 3519, 8039, 5871, 8145, 3619, 7995, 5845, 2437, 3187, 8255, 4059, 3169, 187
****