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]: ['v', 'n', '5785', 'k', '5277', 'k', '783', '8175', '3971']
[A]: v, n, k, k, 5785, 5277, 783, 8175, 3971


[Q]: ['D', '465', 'O', '9737', '9185', 'w', 'K', '8155', '7515', '1049', '8299', 's', 'I', 'Z', '2049', '9119', '6869', 'e']
[A]: D, O, w, K, s, I, Z, e, 465, 9737, 9185, 8155, 7515, 1049, 8299, 2049, 9119, 6869


[Q]: ['4171', '8673', 'v', '1067', 'd', '5687', 't', '5563', 'p', '6931', '4357', '4715', 'D', 'Q', '289', 'x', '517', '9813', 'd', 'Q', '503', '2121', '5655', 'q', 'm', '251', '9531', '701', 'o', '6853', 'X', 'U', '4961', '2967']
[A]:
v, d, t, p, D, Q, x, d, Q, q, m, o, X, U, 4171, 8673, 1067, 5687, 5563, 6931, 4357, 4715, 289, 517, 9813, 503, 2121, 5655, 251, 9531, 701, 6853, 4961, 2967