n = int(input()) b = list(map(int, input().split())) c = int(input()) b.insert(0, c) print(' '.join(map(str, b)))