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: 1, ['5811', 'n', '6307', 'f', 'Z', '5779', 'S', 'T', 'D', '261']
Example Output: 5811, n, 6307, f, Z, 5779, S, T, D

Example Input: 3, ['z', '6977', '5793', '8711', 'm', '7889', 'y']
Example Output: z, 6977, 5793, 8711

Example Input: 2, ['v', '8985', '6553', 'X', 'j', 'm', '6797', '3807', '3553', 'a', 'f', '7279']
Example Output:
v, 8985, 6553, X, j, m, 6797, 3807, 3553, a