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: ['i', '1565', '581', 'D', 'i', 'k', 'i', 'o', 'p', '1147', '4847', 'G', 'W', '6881', 'm', 'h', 'z', '3613', 's', 't', '7921', '4837']

A: i, D, i, k, i, o, p, G, W, m, h, z, s, t, 1565, 581, 1147, 4847, 6881, 3613, 7921, 4837
****
Q: ['g', 'g', '9271', 'D', '9667', 'x', '117', 'E', '4013', 'D', 'M', 'Y', '3887', '5931', '273', '5333', 'Q', '1303', '4517']

A: g, g, D, x, E, D, M, Y, Q, 9271, 9667, 117, 4013, 3887, 5931, 273, 5333, 1303, 4517
****
Q: ['h', 'R', '3213', 'T', '9931', '7385', 'M', '331', '2259', '1431']

A:
h, R, T, M, 3213, 9931, 7385, 331, 2259, 1431
****