N=int(input()) A=list(map(int,input().split())) X=int(input()) B=[] for i in range(4): B.append([X]*4) print('Yes') for b in B: print(*b)