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]: ['8031', 'X', 'j', 'm', 'x', 'O', 'Y', 'p', 'z', 'U', '5125', 'J', '9977', '8977', '3787', '5241', 'z', '8985', '5807', '5063', '1133', '8497', 'n', 'C', 'j', 'X', '3299', 'Y', 'X', 't', '6197', 'a', 'f', 'S']
[A]: X, j, m, x, O, Y, p, z, U, J, z, n, C, j, X, Y, X, t, a, f, S, 8031, 5125, 9977, 8977, 3787, 5241, 8985, 5807, 5063, 1133, 8497, 3299, 6197


[Q]: ['G', 'y', 'W', 'r', 'D', '2353', '2393', 'K', '6911', 'b', '2683', 'y', 'I', '9703', '3815', '5057', 'q', '9995', 'k', 'X', 'j', '4595', 'J', 'k', '7817', '9591', 'h', '279', '8983', '2521', '3407', 'R']
[A]: G, y, W, r, D, K, b, y, I, q, k, X, j, J, k, h, R, 2353, 2393, 6911, 2683, 9703, 3815, 5057, 9995, 4595, 7817, 9591, 279, 8983, 2521, 3407


[Q]: ['8025', '8129', 'T', 'p', 'p', 'T', '6599', 'i', '5093', 't', '9985', 'y', '1017', 'c', 'Y', '3475', 'y', 'X', 'r', 'T', 'z', 'E', '3319', '2129']
[A]:
T, p, p, T, i, t, y, c, Y, y, X, r, T, z, E, 8025, 8129, 6599, 5093, 9985, 1017, 3475, 3319, 2129