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: ['8517', '9863', '9441', '5931', 'N', 'Y', 'n', 'v', 'R', 'o', '6865', '5891', '4153', 'w', '2419', 'k', '9843', 'e', '5873', '4073', 't', '2745', '4917', 'R', 'm', '8551', '547', 'l', 'h', 'O', 'Y', '7551', 'A', '5631', 'q', '8421', '5521', '135', '5323', '2003']
A:
N, Y, n, v, R, o, w, k, e, t, R, m, l, h, O, Y, A, q, 8517, 9863, 9441, 5931, 6865, 5891, 4153, 2419, 9843, 5873, 4073, 2745, 4917, 8551, 547, 7551, 5631, 8421, 5521, 135, 5323, 2003