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: ['a', '381', '4171', 'p', 'u', 'c', 'q', '3225', 'L', '5659', '7671', 'H', '4341', '2255', '7055', '4853', 'f', 'J', 'h', '3501', '7511', 'f']

A: a, p, u, c, q, L, H, f, J, h, f, 381, 4171, 3225, 5659, 7671, 4341, 2255, 7055, 4853, 3501, 7511
****
Q: ['P', 'B', 'N', '8793', 'Z', 'j', '4167', 'a', '1309', 'W', '8209', '6547', '429', '2963', 'U', '6371', 'T', 'G', '9851', 'r', '2291', '8565', '7789', 'w', '4303', 'B', '9819', 'x', 'j', 'b', '3009', 'a', '3403', '7503', 'e', '4675', 'V', 'H', 'k']

A: P, B, N, Z, j, a, W, U, T, G, r, w, B, x, j, b, a, e, V, H, k, 8793, 4167, 1309, 8209, 6547, 429, 2963, 6371, 9851, 2291, 8565, 7789, 4303, 9819, 3009, 3403, 7503, 4675
****
Q: ['7725', '2319', 'c', 'D', '7455', 'B', 'X', 'i', '5481', 'L', 's', 'k', 'i', '4361', 'B', '1057', '3997', 'A', 'M', '6961', 'k', 'T', '6213', '5295', '7137', 'M', '6309', '6945', '7235', '5983', '415', '4451', '5987', '1559']

A:
c, D, B, X, i, L, s, k, i, B, A, M, k, T, M, 7725, 2319, 7455, 5481, 4361, 1057, 3997, 6961, 6213, 5295, 7137, 6309, 6945, 7235, 5983, 415, 4451, 5987, 1559
****