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, ['Y', '5715', 'g', 'J', '549', '9939', '8389', 'J', 'w', 'Q', '6491', 'T', '5097', '8161', '5', 'v', '3909', '8861', '7595', 'i', 'l', '6267', 'H', '4379', 'c', '3447']
Example Output: Y, 5715, g, J, 549, 9939, 8389, J, w, Q, 6491, T, 5097, 8161, 5, v, 3909, 8861, 7595, i, l

Example Input: 12, ['G', 'H', 'Z', '5925', '8451', 'T', 'B', '9269', 'k', 'o', '4753', '8041', 'd', 'd', '2141', '9069', '6407', 'x', 'p', 'j', '831', '4615', '5419', 't', '8337', '7403', 'e', '1397', 'F']
Example Output: G, H, Z, 5925, 8451, T, B, 9269, k, o, 4753, 8041, d, d, 2141, 9069, 6407

Example Input: 1, ['2477', '8857', 'U', '7081', 'N', 'E', 'q', 'r', '8987', '7609', 'U', '1831', 'R', 'f', 'i', 'a', '8707', '8367', '8369', 'T', 'x', '5689']
Example Output:
2477, 8857, U, 7081, N, E, q, r, 8987, 7609, U, 1831, R, f, i, a, 8707, 8367, 8369, T, x