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.

[EX Q]: ['p', 'h', '8605', 'd', '5185', 'B', 'C', '1331', 'r', '2355', '1035', '3547', '7761', '8951', 'T', '1981', 'v', 'a', 'w', 'H', 'e', '5075', 'h', 'o', '3765', '7729', 'Q', '9289', 'i', 'k', 'E', 'k', 'i', 'd', '4879', '821']
[EX A]: p, h, d, B, C, r, T, v, a, w, H, e, h, o, Q, i, k, E, k, i, d, 8605, 5185, 1331, 2355, 1035, 3547, 7761, 8951, 1981, 5075, 3765, 7729, 9289, 4879, 821

[EX Q]: ['e', '1253', 'i', '5223', 'T', '5035', '1425', 'X', '985']
[EX A]: e, i, T, X, 1253, 5223, 5035, 1425, 985

[EX Q]: ['5623', '6381', '8173', '659', '1305', '6877', '9853', '6687', '3593', 'n', 'i', '1029']
[EX A]:
n, i, 5623, 6381, 8173, 659, 1305, 6877, 9853, 6687, 3593, 1029