N = int(input()) A = list(map(int, input().split())) X = int(input()) print(X, X, X, X) print(X, X, X, X) print(X, X, X, X) print(X, X, X, X)