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