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: 1, ['6107', '9057', '3107', 'Y', '9471']
Example Output: 6107, 9057, 3107, Y

Example Input: 4, ['I', '2991', '9273', '9003', 'O', '8771', 'O', '2429']
Example Output: I, 2991, 9273, 9003

Example Input: 2, ['3527', '9819', '195', 'Z', '9149', 'L', '8229', '913', 'M']
Example Output:
3527, 9819, 195, Z, 9149, L, 8229