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: 9, ['u', '4051', '3701', 'X', '4683', 'l', '7955', 'O', '4095', 'c', 'j', 'A', '6477', '529', '4761', '1117', 'l', 'X', 'h']
Example Output: u, 4051, 3701, X, 4683, l, 7955, O, 4095, c

Example Input: 4, ['5805', '6691', 'n', 'Z', 'U', '5017', '499', '7849', 'L', 'l']
Example Output: 5805, 6691, n, Z, U, 5017

Example Input: 7, ['8583', '3821', 'Z', 's', 'v', 'x', 'Q', 'J', '7929', '7723', 'H', 'H', 'k', '8407', '259', '2553', '2031', '3991', '3541', 'Q', 'K', '7497', '4919', '6503']
Example Output:
8583, 3821, Z, s, v, x, Q, J, 7929, 7723, H, H, k, 8407, 259, 2553, 2031