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: ['3217', '5145', 'Z', 'a', 'x', 'm', 'f', 'p']

Output: Z, a, x, m, f, p, 3217, 5145


Input: Consider Input: ['2995', 'x', 'K', 'p', '2923', 'O', 'd', '2747', '9895', 'f', '8609', 'M', 'f', '8977', '8939', 'Q', '2135', 'd', 'e', 'P', 'W', '807', '5311', 'W']

Output: x, K, p, O, d, f, M, f, Q, d, e, P, W, W, 2995, 2923, 2747, 9895, 8609, 8977, 8939, 2135, 807, 5311


Input: Consider Input: ['2895', 'm', '2853', 'D', '2897', '9991', 'N', '6533', 'Y', 'P', '7183']


Output: m, D, N, Y, P, 2895, 2853, 2897, 9991, 6533, 7183