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: 10, ['d', 'c', 'Z', 'b', '4185', 'Y', '3381', 'd', '4167', 'J', '539', 'h', 'Q', '165', '8025', 'M', '6337', 'z', 'k', 'A', 'E', '9729', '7747', '7387', 'S', 'U']
Example Output: d, c, Z, b, 4185, Y, 3381, d, 4167, J, 539, h, Q, 165, 8025, M

Example Input: 5, ['a', 'a', '3961', '9489', 'b', '1505', 'W', '8567', '635', 'z', 'a', '139', '3987', 'C', 'D', '3401', 'l']
Example Output: a, a, 3961, 9489, b, 1505, W, 8567, 635, z, a, 139

Example Input: 6, ['D', '2371', '6693', 'g', '9723', 'U', 'Z', 'D', '7407', 'i', '3315', '965', 'o', 'w']
Example Output:
D, 2371, 6693, g, 9723, U, Z, D