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]: ['1635', 'y', 'O', 'c', '5409', '9327', 'X', 'X', 'O', '5781', '675', 'Y', 'K', '4147', 'x', 'I', 'J', '8755', '6779', 'Y', 'u', 'F', 'i', 'p', 'T', '2503', '7883', '8253', 'A', 'T', 'g', '6165', '7995']
[A]: y, O, c, X, X, O, Y, K, x, I, J, Y, u, F, i, p, T, A, T, g, 1635, 5409, 9327, 5781, 675, 4147, 8755, 6779, 2503, 7883, 8253, 6165, 7995


[Q]: ['s', 'R', '5665', 'm', '2001', 'h', '2117', 'X', '453', 'S', '5799', '911', '7823', 'v', 'Z', '7171', 'l', 'p', '6701', 't', 'a', 'Y', '873', '2811', 'Y', '9533', '4317', 'Q', 'N', '2099', 'R', 'U', 'e', 'L', '9503', 'n', 'w', '7289', '1289']
[A]: s, R, m, h, X, S, v, Z, l, p, t, a, Y, Y, Q, N, R, U, e, L, n, w, 5665, 2001, 2117, 453, 5799, 911, 7823, 7171, 6701, 873, 2811, 9533, 4317, 2099, 9503, 7289, 1289


[Q]: ['g', 'E']
[A]:
g, E