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.

['u', 'E']
u, E

['a', '381', '4171', 'p', 'u', 'c', 'q', '3225', 'L', '5659', '7671', 'H', '4341', '2255', '7055', '4853', 'f', 'J', 'h', '3501', '7511', 'f']
a, p, u, c, q, L, H, f, J, h, f, 381, 4171, 3225, 5659, 7671, 4341, 2255, 7055, 4853, 3501, 7511

['X', 'i', '99', '7591', '3181', 'y', '1735', 'x', 'r', 'z', '2679', '787', 'E', 'n', 'L', 'j', 'r', '9007', '2731', 'j', 'h', 'g', 'q', '3899', 'k', 'P', '6547', 'O', 'o', 'Y', '3795', 'Q', 'h', '4025', '9991', '3887', 'J', '395']

X, i, y, x, r, z, E, n, L, j, r, j, h, g, q, k, P, O, o, Y, Q, h, J, 99, 7591, 3181, 1735, 2679, 787, 9007, 2731, 3899, 6547, 3795, 4025, 9991, 3887, 395