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: ['H', '8371', 'D', 'p', '7145', 'f', '1423', 'L', '9495', '5085', 'B', '973', 'z', '4571', '1541', '9771', '7531', 'E', 'n', '1583', 'S', '8133', '307', 'Q', 'q', 'h', '4615', 'N', 'h', '6415', '9517', 'R']

A: H, D, p, f, L, B, z, E, n, S, Q, q, h, N, h, R, 8371, 7145, 1423, 9495, 5085, 973, 4571, 1541, 9771, 7531, 1583, 8133, 307, 4615, 6415, 9517
****
Q: ['A', '1797', 'h', '831', 'R', '1479', '847', '9057', '2253', '7111', 'M', 'p', '8749', 'm', '3599', '4911', 'c', 'X', '6719', '1513', '6901', '7125', '7697', 'W', 'x', 'G', 'L', 'J', 'W']

A: A, h, R, M, p, m, c, X, W, x, G, L, J, W, 1797, 831, 1479, 847, 9057, 2253, 7111, 8749, 3599, 4911, 6719, 1513, 6901, 7125, 7697
****
Q: ['J', '8421', 'R', '5057', 'S', '7607', '1811', 'S', '7321', 'R', '6151', 'F', 'P', '7645', 'x', 'U', '7303', '1009', '9293', '2903', '9063', 'N', '1421', '6591', '8327', '5643', '4095', '6385', '4087', '9093', '4213', '6117', 'v', 'S', 'i', '1393', 'T', '3063']

A:
J, R, S, S, R, F, P, x, U, N, v, S, i, T, 8421, 5057, 7607, 1811, 7321, 6151, 7645, 7303, 1009, 9293, 2903, 9063, 1421, 6591, 8327, 5643, 4095, 6385, 4087, 9093, 4213, 6117, 1393, 3063
****