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: ['5127', '2471', 'W', 'i', '5941', 'H', 'V', 'M', 'V', '2581', '8199', '5679', 't', '7669', 'E', 'e', 'P', '3317', '8789', 'd', 'f']

A: W, i, H, V, M, V, t, E, e, P, d, f, 5127, 2471, 5941, 2581, 8199, 5679, 7669, 3317, 8789
****
Q: ['8101', 'g', 'a', 'S', 'M', 'M', '9499', '4027', 'c', '6661', '783', 'O', '4471', '6575', '6045', 'i', '1561', '5103', 'l', '4653', '3']

A: g, a, S, M, M, c, O, i, l, 8101, 9499, 4027, 6661, 783, 4471, 6575, 6045, 1561, 5103, 4653, 3
****
Q: ['5797', 'z', '5609', 'd', '253', 'U', '951', 'h', 'L', 'l', '8769', '8105', 'S', 'L', '709', '3345', 'H', '8613', 'v']

A:
z, d, U, h, L, l, S, L, H, v, 5797, 5609, 253, 951, 8769, 8105, 709, 3345, 8613
****