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, ['s', '7121']
Example Output: s

Example Input: 2, ['3999', '8117', '6037', 'Q']
Example Output: 3999, 8117

Example Input: 3, ['3681', '151', 'x', '1045', '3185', '5037', '6563', 'M', '1371']
Example Output:
3681, 151, x, 1045, 3185, 5037