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: 6, ['985', '7793', '2875', '4197', 'U', 'z', 'e', 'f', '591', '3747', '8661', 'I', 'u', '9343', '6973', 'K', '6295', '7271', 'g', '3797', '8631', '5711', '503']
Example Output: 985, 7793, 2875, 4197, U, z, e, f, 591, 3747, 8661, I, u, 9343, 6973, K, 6295

Example Input: 4, ['W', 'U', '7989', '7921', '2625', '4897', '1429', '7431', 'v', 'J', 'G', '2459', 'h', 'D', 'O', 'j', '5037', '9775', '7017']
Example Output: W, U, 7989, 7921, 2625, 4897, 1429, 7431, v, J, G, 2459, h, D, O

Example Input: 1, ['8217', '3073', '9497', 'm', '2859', '7629', 'W', 'y', 'z', 'S', 'r', '41', 'V', '3007', 'W', 'Q', '6799', 'W', '6027', 'M', '945', '7447', '3665', 'U', '5709', 'y', '8947', 'i', 'T']
Example Output:
8217, 3073, 9497, m, 2859, 7629, W, y, z, S, r, 41, V, 3007, W, Q, 6799, W, 6027, M, 945, 7447, 3665, U, 5709, y, 8947, i