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: ['4367', 'd', '869', '9437', '1241', '5197', '9561', '1617', '1021', '2239', '6355', 'G', 'P', '5951', 'S', 'j', '617', 'w', 'T', 'j', 'R', 'h', 'f', 'g']

A: d, G, P, S, j, w, T, j, R, h, f, g, 4367, 869, 9437, 1241, 5197, 9561, 1617, 1021, 2239, 6355, 5951, 617
****
Q: ['625', 't', '7989', 'R', 'c', '5593', 'w', 'P', 'P', 'v', 'A', '6183', '9889', '4839', 'z', 'E', '39', '3405', 'I', 'x', 'f', 'K']

A: t, R, c, w, P, P, v, A, z, E, I, x, f, K, 625, 7989, 5593, 6183, 9889, 4839, 39, 3405
****
Q: ['z', 'X', '7401', '2875', '8515', '4191', 'W']

A:
z, X, W, 7401, 2875, 8515, 4191
****