def reverse(a, size):
i, j = 0, size - 1
while i < j:
a[i], a[j] = a[j], a[i]
i += 1
j -= 1
n, size = map(int, input().split())
a = list(map(int, input().split()))
reverse(a, size)
for x in a:
print(x, end=' ')