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.

['2217', '9971', 'M', 'f', '407', 'q', '1233', 'f', '6335', '8037', 'l', 'Z', 'w', '8193', '891', 'X', '7163', 'P']
M, f, q, f, l, Z, w, X, P, 2217, 9971, 407, 1233, 6335, 8037, 8193, 891, 7163

['J', 'o', 'u', '8973', 'x', 'U', '7579', '8181', 'I', 'b', '2851', 'e', '7695', 'N', 'E', 'A', '6085', 'n', '1039', 'y', '2549', 'N', 'H', '4509', 'g', '3735', 'm', 'B', '6261', '9175', 'p', 'J', 'f', 't', 'v', '1943', 'h', 'c', '8217']
J, o, u, x, U, I, b, e, N, E, A, n, y, N, H, g, m, B, p, J, f, t, v, h, c, 8973, 7579, 8181, 2851, 7695, 6085, 1039, 2549, 4509, 3735, 6261, 9175, 1943, 8217

['8665', '3895', 'e', 'U', '4977', 'V', '25', '1741', '807', '4723', '6627', '9323', '1119', 'v', '9319', '3143', '9259', '7439', 'e', '109', '9333', '9635', 'n', '221', '1551', '1443', '4435', 'a', '6501', 'g', '4029', '663', 'x', '8433', 'I', 't', '9809', '8015', 'v', 'v']

e, U, V, v, e, n, a, g, x, I, t, v, v, 8665, 3895, 4977, 25, 1741, 807, 4723, 6627, 9323, 1119, 9319, 3143, 9259, 7439, 109, 9333, 9635, 221, 1551, 1443, 4435, 6501, 4029, 663, 8433, 9809, 8015