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: ['8665', 'e', '1109', 'R', 'N', 'P', 'y', 'S', '6459', '8123', 'j', 'e', 'f', '1329', 'Y', '5399', 'q', '7371', 'd', '7787', '657', '391', '9143', '3321', 'Q', '2167', '2587', '8189', 'W', 'e']

A: e, R, N, P, y, S, j, e, f, Y, q, d, Q, W, e, 8665, 1109, 6459, 8123, 1329, 5399, 7371, 7787, 657, 391, 9143, 3321, 2167, 2587, 8189
****
Q: ['W', '7631', 'q', '9985', 'c', 'J', '3255', '1731', '9057', 'E', '2613', 'w', '9817', 'F', '5961', 'E', 'a', '5483']

A: W, q, c, J, E, w, F, E, a, 7631, 9985, 3255, 1731, 9057, 2613, 9817, 5961, 5483
****
Q: ['D', 'D', 'O', '173', 'D', 'Q', '3133', '7227', 'j', '8037', 'g', '5337', 'O', '1113', 'X', '1053', 'Q', '4597', '1461', 'x', 'I', '4671', 'U', '7495', 's', '8333', '4627', '1005', 'p', '6697', 'C']

A:
D, D, O, D, Q, j, g, O, X, Q, x, I, U, s, p, C, 173, 3133, 7227, 8037, 5337, 1113, 1053, 4597, 1461, 4671, 7495, 8333, 4627, 1005, 6697
****