instruction:
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.
question:
['9779', 'z', 'p', 'W', '7659', '2619', 'a', '3109', 'i', 'R', 'a', '5287', 'j', '3473', '4907', '7261', 'h', '5289', '43', 'l', 'M', 'o', 'm']
answer:
z, p, W, a, i, R, a, j, h, l, M, o, m, 9779, 7659, 2619, 3109, 5287, 3473, 4907, 7261, 5289, 43


question:
['7065', 'q', 'P', 'E', 'O', 'A', 'z', '8863', 't', 'L', 'v', 'n', '2159', '7027', '3179', 'u', '7143', '4687', 'K', '9581']
answer:
q, P, E, O, A, z, t, L, v, n, u, K, 7065, 8863, 2159, 7027, 3179, 7143, 4687, 9581


question:
['5837', '991', '6593', '3039', 'f', '4835', 'B', 'C', '9895', '491']
answer:

f, B, C, 5837, 991, 6593, 3039, 4835, 9895, 491