Problem: You are storing an integer array of length m in a database. To maintain internal integrity and protect data, the database stores n copies of this array.

Unfortunately, the recent incident may have altered the stored information in every copy in the database.

It's believed, that the incident altered at most two elements in every copy. You need to recover the original array based on the current state of the database.

In case there are multiple ways to restore the array, report any. If there is no array that differs from every copy in no more than two positions, report that as well.

Input

The first line contains integers n and m (2 ≤ n; 1 ≤ m; n ⋅ m ≤ 250 000) — the number of copies and the size of the array.

Each of the following n lines describes one of the currently stored copies in the database, it consists of m integers s_{i, 1}, s_{i, 2}, ..., s_{i, m} (1 ≤ s_{i, j} ≤ 10^9).

Output

If there is an array consistent with all given copies, print "Yes" and then the array itself. The array must have length m and contain integers between 1 and 10^9 only.

Otherwise, print "No".

If there are multiple possible arrays, print any of them.

Examples

Input


3 4
1 10 10 100
1 1 1 100
10 100 1 100


Output


Yes
1 10 1 100


Input


10 7
1 1 1 1 1 1 1
1 1 1 1 1 1 2
1 1 1 1 1 2 2
1 1 1 1 2 2 1
1 1 1 2 2 1 1
1 1 2 2 1 1 1
1 2 2 1 1 1 1
2 2 1 1 1 1 1
2 1 1 1 1 1 1
1 1 1 1 1 1 1


Output


Yes
1 1 1 1 1 1 1


Input


2 5
2 2 1 1 1
1 1 2 2 2


Output


No

Note

In the first example, the array [1, 10, 1, 100] differs from first and second copies in just one position, and from the third copy in two positions.

In the second example, array [1, 1, 1, 1, 1, 1, 1] is the same as the first copy and differs from all other copies in at most two positions.

In the third example, there is no array differing in at most two positions from every database's copy.

Solution (in CPP):

Solution:
#pragma GCC optimize(2, 3, "Ofast")

#include <bits/stdc++.h>
using namespace std;

template <typename T>
void printAr(const vector<T>& ar, char sep = ' ', bool addNewLine = true, ostream& out = cout) {
	for (size_t i = 0; i < ar.size(); ++i) {
		out << ar[i];
		if (i != ar.size() - 1)
			out << sep;
	}
	if (addNewLine)
		out << endl;
	else
		out << " ";
}

typedef unsigned long long ull;

typedef unsigned int uint;

namespace IO {
#define getcha() (SS == TT && (TT = (SS = BB) + fread(BB, 1, 1 << 23, stdin), SS == TT) ? EOF : *SS++)
	char BB[1 << 23], *SS = BB, *TT = BB;
	template <typename T>
	inline void read(T &x) {
		x = 0; int fu = 1;
		char c = getcha();
		while (c > 57 || c < 48) {
			if (c == 45) fu = -1;
			c = getcha();
		}
		while (c <= 57 && c >= 48) {
			x = x * 10 + c - 48;
			c = getcha();
		}
		x *= fu;
	}
	template <typename T, typename ...Args>
	inline void read(T &x, Args &...args) {
		read(x); read(args...);
	}
	char out[1 << 22], *Out = out;
#define flush() fwrite(out, 1, Out - out, stdout)
	inline void putcha(char x) { *Out++ = x; if (Out - out >= (1 << 22)) flush(), Out = out; }
	template <typename T>
	inline void fprint(T x) {
		if (x < 0) putcha(45), x = -x;
		if (x > 9) fprint(x / 10);
		putcha(x % 10 + 48);
	}
	template <typename T>
	inline void print(T x) { fprint(x); putcha(10); }
	inline void print(const char *ch) { while (*ch != '\0') putcha(*(ch++)); }
	inline void put(const char *ch) { while (*ch != '\0') putcha(*(ch++)); putcha(10); }
	template <typename T, typename ...Args>
	inline void print(T x, Args ...args) { fprint(x); putcha(32); print(args...); }
	template <typename T>
	inline void sprint(T x) { fprint(x); putcha(32); }
	template <typename T, typename ...Args>
	inline void sprint(T x, Args ...args) { fprint(x); putcha(32); sprint(args...); }
	class AutoFlush {
	public:
		~AutoFlush() { flush(); }
	}__AutoFlush;
} // namespace IO
using namespace IO;
namespace MyMinMax {
	template <typename T>
	inline T mn(T x, T y) { return x < y ? x : y; }
	template <typename T>
	inline T mx(T x, T y) { return x > y ? x : y; }
	template <typename T>
	inline void chmin(T &x, T y) { (x > y) && (x = y); }
	template <typename T>
	inline void chmax(T &x, T y) { (x < y) && (x = y); }
}
using namespace MyMinMax;

bool recSearch(size_t gCnt, vector<vector<int> >& db, bool& resFound) {
	if (resFound) return true;
	bool isCorrectCur = true;
	bool res = false;
	vector<size_t> diffIdx(6, 0);
	//printAr(db[0]); cout << "gCnt = " << gCnt << endl;
	for (size_t i = 1; i < db.size(); ++i) {
		size_t curCnt = 0;
		for (size_t j = 0; j < db[i].size(); ++j) {
			if (db[0][j] != db[i][j]) {
				diffIdx[curCnt++] = j;
				if (curCnt + gCnt >= 5) break;
			}
		}

		isCorrectCur = isCorrectCur && (curCnt <= 2);
		if (curCnt + gCnt >= 5 || curCnt + gCnt > db[0].size())
			return false;
		else if (curCnt == 3 && gCnt <= 1) {
			for (size_t k = 0; k < curCnt; ++k) {
				auto idx = diffIdx[k];
				auto oldV = db[0][idx];
				db[0][idx] = db[i][idx];
				if (gCnt <= 1) {
					res = res || recSearch(gCnt + 1, db, resFound);
					if (res) return true;
				}
				db[0][idx] = oldV;
			}
		} else if (curCnt == 4 && gCnt == 0) {
			for (size_t k1 = 0; k1 < 4; ++k1)
				for (size_t k2 = k1 + 1; k2 < 4; ++k2) {
					auto i1 = diffIdx[k1];
					auto i2 = diffIdx[k2];
					auto oldV1 = db[0][i1];
					db[0][i1] = db[i][i1];
					auto oldV2 = db[0][i2];
					db[0][i2] = db[i][i2];
					if (gCnt == 0) {
						res = res || recSearch(gCnt + 2, db, resFound);
						if (res) return true;
					}
					db[0][i1] = oldV1; db[0][i2] = oldV2;
				}
		}
	}
	if (isCorrectCur && !resFound) {
		resFound = true;
		res = true;
		//for (size_t k = 0; k < db[0].size(); ++k)
			//resV.push_back(db[0][k]);
	}
	return res;
}


int main() {
	cin.tie(NULL);

	size_t n = 0, m = 0;
	read(n, m);

	vector<vector<int> > db(n, vector<int>());
	for (size_t i = 0; i < n; ++i) {
		db[i].resize(m);
		for (size_t j = 0; j < m; ++j) {
			int x; read(x);
			db[i][j] = x;
		}
	}

	//vector<int> resV;
	bool res = false;
	recSearch(0, db, res);

	if (res) {
		print("Yes\n");
		for (size_t i = 0; i < m; ++i) sprint(db[0][i]);
		putcha(10);
	} else
		print("No\n");

	return 0;
}