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:
['8277', 'p', '4245', '3333', '7825', '765', '2579', 'X', '2953', 'E', '5121', 'X', '1697', 'q', 'Y', '9103', 'J', '129', '6221', '6743', 'Z', '6467', 'V', '5703', '8161', '5603', '4229', '8039', '1455', '2663', 'O', '9853', '3853', '6987', '9699', 'P', '9929']
answer:
p, X, E, X, q, Y, J, Z, V, O, P, 8277, 4245, 3333, 7825, 765, 2579, 2953, 5121, 1697, 9103, 129, 6221, 6743, 6467, 5703, 8161, 5603, 4229, 8039, 1455, 2663, 9853, 3853, 6987, 9699, 9929


question:
['G', 'A', '1165', 'O']
answer:
G, A, O, 1165


question:
['8873', '161', 'u', 'w', 'j', 'R', '807', '8705', '7155', '4313', 'm', '7963', '3473', 'J', 'A', 's', 'q', '2103', 'P', 'c', 'E', 'E', '3979', 'j']
answer:

u, w, j, R, m, J, A, s, q, P, c, E, E, j, 8873, 161, 807, 8705, 7155, 4313, 7963, 3473, 2103, 3979