In this task, you are given inputs i and A, where i is an integer and A is a list. You need to output the first i elements of A, starting with the 1st element in A. i will always have a value less than the length of A

2, ['n', 'd', 'P', '165', '7221', '971', 'W', '7097', '8273', '419', 'y', '7771', '1387', 'u', 'v', 'F', '7003', '8139', 'i', '305', 'w']
n, d

1, ['4851', '2925', '7685', '9051', 'H', '7741', 'h', '4545', '3315', '9597', '5671', 'n', '2147', 'G', 'e', '8423', '1143', '6463', '1491', 'j', 'l', '6067', 'a', 'D', '1865', '1603', '4243']
4851

5, ['3831', 'D', 'H', 'T', '2079', '309', '8015', '1947', 'F', '4323', 'e', '1909', '5223', 'Z', '7739', 'v', 'R', '9967', '1037', 'G', '6169', '9169', 'b', 't', '4859']

3831, D, H, T, 2079