N = int(input()) A = list(map(int, input().split())) X = int(input()) print("Yes") for _ in range(4): print(*([X] * 4))