Detailed Instructions: 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: ['g', '171', '3899', '6695', '5609', '5915', '1029', 'p', '6545', 'n', '9485', '5003', 'J', 't', '469', 'i', '6375', '6483', '3331', '5891', '2825', 'L', '5357', '429', 'P', '1053', '7403', '9065', '5629', '715', '1727', '9529', '2035', '8357', 'A']
A:
g, p, n, J, t, i, L, P, A, 171, 3899, 6695, 5609, 5915, 1029, 6545, 9485, 5003, 469, 6375, 6483, 3331, 5891, 2825, 5357, 429, 1053, 7403, 9065, 5629, 715, 1727, 9529, 2035, 8357