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]: ['m', 'D', 'z', 'I', 'H', 'a', 'U', '8661', '8367', 'B', '1349', 'z']
[A]: m, D, z, I, H, a, U, B, z, 8661, 8367, 1349


[Q]: ['1295', '4081', 'X', '6949', '4655', 'x', '8235', 'O', 'V', '8815', '2723', 'U', 'i', 'k', 'S', 'w', 'c', '5089', 'x', 'V', 's', 'T', 'w', 'E', 'j', 'y', 'B', 'H', 'W', 'H']
[A]: X, x, O, V, U, i, k, S, w, c, x, V, s, T, w, E, j, y, B, H, W, H, 1295, 4081, 6949, 4655, 8235, 8815, 2723, 5089


[Q]: ['2435', '647', '4281', '2027', '8889', '8779', 't', '5559', 'n']
[A]:
t, n, 2435, 647, 4281, 2027, 8889, 8779, 5559