In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.

Input: Consider Input: 3, ['M', '5663', '4129', 'B', '7459', 's', '6615', 's']

Output: M, 5663, 4129, B, 7459


Input: Consider Input: 5, ['h', '5371', 'Y', 'E', '4733', '9039', 'w', 'p', '1229', '4813', '2273', 'q', '1831']

Output: h, 5371, Y, E, 4733, 9039, w, p


Input: Consider Input: 10, ['m', '667', 'T', '5111', '7743', '17', 'I', 's', 'j', '6367', '6163', '2455', '5401', 'm', '2219', 'i', 'Z', '7749', '6569', '7423', '2619', 'm', '8843', '1469', 'd', '723', 's', 'p']


Output: m, 667, T, 5111, 7743, 17, I, s, j, 6367, 6163, 2455, 5401, m, 2219, i, Z, 7749