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: ['7879', 'h', '5401', 'e', 'B', '9419', 'f', '7509', '2617', 'r', 'q', 'L', '2453']

A: h, e, B, f, r, q, L, 7879, 5401, 9419, 7509, 2617, 2453
****
Q: ['8951', 'L', '2127', 'T', '2489', '4475', 'p', '9735', '9993', 'Q', 'f', '2939', 'k', 'K', 'J', '549', '8905', 'd', 'S', '4525', '3599', '6459', 'D', '5553', '7557', 'i', '231', 'T', '9161']

A:
L, T, p, Q, f, k, K, J, d, S, D, i, T, 8951, 2127, 2489, 4475, 9735, 9993, 2939, 549, 8905, 4525, 3599, 6459, 5553, 7557, 231, 9161
****