#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, x; cin >> n; vector a(n); for(auto &e : a) cin >> e; cin >> x; cout << "Yes" << '\n'; for(int i = 0; i < 4; ++i){ for(int j = 0; j < 4; ++j) cout << x << ' '; cout << '\n'; } return 0; }