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: ['l', '9043', 'g', 'k', 'u', 'U', 'Q', '6049', 'M', 'y', 'X', '2547', '4653', '1049', 'v', 'd', 'k', '1077', 'i', '3841', 'U', 'n']

A: l, g, k, u, U, Q, M, y, X, v, d, k, i, U, n, 9043, 6049, 2547, 4653, 1049, 1077, 3841
****
Q: ['1099', '8963', 'K', '9431', '6457', 'T', '2175', 'd', '6679', 'Y', '5003', 'M', '9273', 'M', 'D', '4781', 'z', 'C', '4579', '2231', '8291', '9123', 'E', '7209', 'U', '8237', '9277', '9443', 'e', '6145', '8827', 'M', 'q', '5363', 'H', '8781']

A: K, T, d, Y, M, M, D, z, C, E, U, e, M, q, H, 1099, 8963, 9431, 6457, 2175, 6679, 5003, 9273, 4781, 4579, 2231, 8291, 9123, 7209, 8237, 9277, 9443, 6145, 8827, 5363, 8781
****
Q: ['I', 'V', 'N', '5757', 'C', '1275', '2871']

A:
I, V, N, C, 5757, 1275, 2871
****