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