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: ['8017', 't', '8829', 'x', '7733', 'J', '7831', 'a', 'b', 'U', '567', '1787', '5177', '6669', 't', '7977', '937', 'R', '377', 'Y', 'a', '7047', 'Y', '2025', '6133', 'q', '9419', 'v', '9849', '5339', '1557', '2779', 'K', '9577', '4455', 'q', 'S', 'T', 'd', 'r']
A:
t, x, J, a, b, U, t, R, Y, a, Y, q, v, K, q, S, T, d, r, 8017, 8829, 7733, 7831, 567, 1787, 5177, 6669, 7977, 937, 377, 7047, 2025, 6133, 9419, 9849, 5339, 1557, 2779, 9577, 4455