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: 4, ['9837', '9419', 'D', '1877', 'Q', '2375', '1141', 'i', 'x']
Example Output: 9837, 9419, D, 1877, Q

Example Input: 12, ['8683', '8853', 'r', '5697', 'P', '7487', 's', 'b', '5003', '6493', 'D', '1367', '4403', 'd', 'W', '5975', 'f', 'B', '8335', '899', 'x', 'G', '8921', 'd', '8455']
Example Output: 8683, 8853, r, 5697, P, 7487, s, b, 5003, 6493, D, 1367, 4403

Example Input: 6, ['k', '8765', 'S', '2713', 'a', 'S', '877', 'm', 'T', 'i', 's', '8211', '7701', '7345', 'S', 'a', '5517', '2955', 'l', '8163', 'O', 'u', '6479', 'c', 'E', '7763', 'M']
Example Output:
k, 8765, S, 2713, a, S, 877, m, T, i, s, 8211, 7701, 7345, S, a, 5517, 2955, l, 8163, O