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