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, ['h', '5371', 'Y', 'E', '4733', '9039', 'w', 'p', '1229', '4813', '2273', 'q', '1831']
Example Output: h, 5371, Y, E, 4733, 9039, w, p

Example Input: 3, ['9317', 'r', 'h', '8465', '8803', '9133', 'L', 'R', 'A', 'i', 'u', '8513', '9071', '3583']
Example Output: 9317, r, h, 8465, 8803, 9133, L, R, A, i, u

Example Input: 2, ['H', '7205', 'r', '4293', '3035', 'l', 'E', '7463', '8157', '8791']
Example Output:
H, 7205, r, 4293, 3035, l, E, 7463