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.

Example Input: 6, ['x', '7725', '833', 'B', 'p', 'F', '591', 'A', 'C', '1785', '2309', 'E']
Example Output: x, 7725, 833, B, p, F

Example Input: 11, ['l', '331', 'e', 'd', '2135', 'E', 'D', '8433', '4443', 's', 'E', '9205', '4027', '9531', '3607', 'Z', 'o', 'U', 'D', '6289', 'p', 's', '5741']
Example Output: l, 331, e, d, 2135, E, D, 8433, 4443, s, E, 9205

Example Input: 4, ['A', 'i', 'F', '4005', 'N', '3507', 'x', '5139']
Example Output:
A, i, F, 4005