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: ['m', 'D', 'z', 'I', 'H', 'a', 'U', '8661', '8367', 'B', '1349', 'z']

Answer: m, D, z, I, H, a, U, B, z, 8661, 8367, 1349


Question: ['t', 't', '2017', '8431', 'T', '7271', '4561', '4679', 'n', '4909', '1059', '7397', '3957', '8825', '1553', 'I', '941', '6749', '9865', '5947', 'q']

Answer: t, t, T, n, I, q, 2017, 8431, 7271, 4561, 4679, 4909, 1059, 7397, 3957, 8825, 1553, 941, 6749, 9865, 5947


Question: ['B', 'r', 'V', 'K', 'J', 'T', 'E', 'R', '9251', '8563', 'm']

Answer:
B, r, V, K, J, T, E, R, m, 9251, 8563