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.

Input: Consider Input: ['N', 'M', '3951', '6031', '2277', 'M', 'Z', '1755', 'g', '255', 'G', '3423', 'W', 'Q', '393', 'M', '5045', 'c', 'J', '9001', '8103']

Output: N, M, M, Z, g, G, W, Q, M, c, J, 3951, 6031, 2277, 1755, 255, 3423, 393, 5045, 9001, 8103


Input: Consider Input: ['M', '5785', 'N', 'n', 'Q', '7145', '7247', 'w', '4877', '9477', 'z', 'i', 'T', 'D', '4815', 'd', 'X', 'V', '3411', 'a', 'J', 'v', '5259', 'C', 'z', 'w', '99', '2905', '2897', 'k', '6537', 's', 'q', 'W', '5537', 'K']

Output: M, N, n, Q, w, z, i, T, D, d, X, V, a, J, v, C, z, w, k, s, q, W, K, 5785, 7145, 7247, 4877, 9477, 4815, 3411, 5259, 99, 2905, 2897, 6537, 5537


Input: Consider Input: ['9443', 'a', '4729', 'U', 'r']


Output: a, U, r, 9443, 4729