n = int(input()) a = list(map(int, input().split())) x = int(input()) print("Yes") for i in range(4): print(*[x]*4)