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, ['l', 'M', '5143', '6301', 'W', 'H', 'D', 'o', '7457', 'o', '5021', 'a', '5621', 'g', 'A', 'Q', 'X', 'X', 'b']
Example Output: l, M, 5143, 6301, W, H, D, o, 7457, o, 5021, a, 5621, g

Example Input: 2, ['t', '51', '4787', '2989', 'o', 'J', '7547', '5727', '5705', 'y', '9805']
Example Output: t, 51, 4787, 2989, o, J, 7547, 5727, 5705

Example Input: 5, ['3365', '6179', '6573', 'N', '2617', '327', '8989', '7585', 'o', 'M', 'b', '8289']
Example Output:
3365, 6179, 6573, N, 2617, 327, 8989