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