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: ['1243', '6133', '7145', '4061', '4919', 'y', '2955', '2707', 'y', 'w', 'P', 'c', '6387', '5119', 'c', 'B', 'N', '4849', '7999', '4571', 'U', 'M', 'S', '5981', 'n']

A: y, y, w, P, c, c, B, N, U, M, S, n, 1243, 6133, 7145, 4061, 4919, 2955, 2707, 6387, 5119, 4849, 7999, 4571, 5981
****
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: ['i', '781']

A:
i, 781
****