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.

['6339', 's', 'y', '8869', '1179', 'L', 'M', 'H', 'G', '1989', 'm', 'x', '8581', '1917', 'Q', '5041', '6379', '4323', '417', '1251', '5483', '1927', '2315', '9079', '2089', 'N', '2731', '4553', 'I', '1791', '9797', 'k', 'r', 'D', 'x']
s, y, L, M, H, G, m, x, Q, N, I, k, r, D, x, 6339, 8869, 1179, 1989, 8581, 1917, 5041, 6379, 4323, 417, 1251, 5483, 1927, 2315, 9079, 2089, 2731, 4553, 1791, 9797

['P', 'D', '199', '8721', '9133', 'b', 'i', '4041', 'l', '2799', '5949', '2191', '7095', '4573', 'h', '1561', 'k', 'J', 'a', 'O', '5877', '5109', 'X', '2253', '4381', 'S', '3609', '4219', 'Y', 'L', '9165', '1911', '861', '8627']
P, D, b, i, l, h, k, J, a, O, X, S, Y, L, 199, 8721, 9133, 4041, 2799, 5949, 2191, 7095, 4573, 1561, 5877, 5109, 2253, 4381, 3609, 4219, 9165, 1911, 861, 8627

['3565', '5831', 'c', '7723', '7095', '179', 'v', 't', 'I', '739', '5135', '2415', 'Y', '8621', '9387', 'W', '8425', 'N', 'K', '203', 'L', 'q', 'b', '2107', 'f', '6723', '8897', '6447', '6065', 'R', '5841', 'E', 'M', 'S', '8197', '1061']

c, v, t, I, Y, W, N, K, L, q, b, f, R, E, M, S, 3565, 5831, 7723, 7095, 179, 739, 5135, 2415, 8621, 9387, 8425, 203, 2107, 6723, 8897, 6447, 6065, 5841, 8197, 1061