#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); int n; cin >> n; for (int i = 0; i < n; i++) { int x; cin >> x; } int x; cin >> x; cout << "Yes\n"; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { cout << x << (j + 1 == 4 ? "\n" : " "); } } }