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.

[Q]: 5, ['1667', 'U', '1659', 'E', 'J', '7209', 'B', '9839', 'z', '8841', '5105', 'N', '1487', 'q', '3137', 'b', 'D', '1433', '2365', 'Q', '75', 't', '9887', 'y']
[A]: 1667, U, 1659, E, J, 7209, B, 9839, z, 8841, 5105, N, 1487, q, 3137, b, D, 1433, 2365


[Q]: 7, ['S', 'W', '8205', '5065', '7121', 'g', '3045', 'A', '239', '6759', 'G', 'e', '8499', 'h', 'W', 'x', '3699']
[A]: S, W, 8205, 5065, 7121, g, 3045, A, 239, 6759


[Q]: 9, ['3187', 'S', 'z', 'A', 'Z', '9473', '6627', '2465', '4033', 'I', 'j', '3297', '2793', '9619', '2471', 'O', 'H', '6361', '1197', '4035', '8515']
[A]:
3187, S, z, A, Z, 9473, 6627, 2465, 4033, I, j, 3297