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, ['X', '245', 'e', 'Z', '1475']
Example Output: X, 245, e, Z

Example Input: 6, ['6381', 'u', 'd', '7355', 't', 'X', 'n', 'S', 's', 'n', '3703', '6983', '3767', 'm', 'z']
Example Output: 6381, u, d, 7355, t, X, n, S, s

Example Input: 3, ['829', '7881', 'w', 'Z', '7035', 'f', 'z']
Example Output:
829, 7881, w, Z