d = input().split()
d = list(map(int, d))
f = input().split()
f = list(map(int, f))
g = d[1] - 1
print(f[g])

075fad6642139576811a415f85450b9900e3196b
<mask token>

<mask token>
print(f[g])

d = input().split()
d = list(map(int, d))
f = input().split()
f = list(map(int, f))
g = d[1] - 1
print(f[g])
