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.

Q: ['P', '6987', '9279', 'c', 'A', '9533', 'X', '8511', 's', 'O', 'i', 'a', '4939']

A: P, c, A, X, s, O, i, a, 6987, 9279, 9533, 8511, 4939
****
Q: ['p', '5531', '2467', '7415', 'w', '2487', 'V', '965', 'O', 't', '6221', 'J', 'J', '5297', 'v', '4443', 'w', 'D']

A: p, w, V, O, t, J, J, v, w, D, 5531, 2467, 7415, 2487, 965, 6221, 5297, 4443
****
Q: ['k', '1357', 'G', '815', '8749', '301', 'O', '7621', 'a']

A:
k, G, O, a, 1357, 815, 8749, 301, 7621
****