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: 2, ['y', '9251', '9425', 'B']
Example Output: y, 9251

Example Input: 4, ['R', 'U', 'W', '403', '8287', 's', '8495', 'x']
Example Output: R, U, W, 403

Example Input: 3, ['P', '9509', 'n', 'U', '9983', 'W', '531']
Example Output:
P, 9509, n, U