#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, v, x; cin >> n; while(n--) cin >> v; cin >> x; cout << "Yes\n"; for(int i = 0; i < 4; i++) for(int j = 0; j < 4; j++) cout << x << (j == 3 ? '\n' : ' '); }