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: 5, ['h', '5371', 'Y', 'E', '4733', '9039', 'w', 'p', '1229', '4813', '2273', 'q', '1831']
Example Output: h, 5371, Y, E, 4733, 9039, w, p

Example Input: 5, ['1455', 'C', '4659', 'A', '557', 'n', 'R', '4853', '9623', 'Y', '5985', '8355', 'q']
Example Output: 1455, C, 4659, A, 557, n, R, 4853

Example Input: 3, ['S', '989', 'f', '2933', 'l', '291', '1939', 'a', '3933', '6125', 'X', '7215', 'D', '1545', '3803', 'C']
Example Output:
S, 989, f, 2933, l, 291, 1939, a, 3933, 6125, X, 7215, D