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:
//To debug :  g++ -g file.cpp -o code
//to flush output : fflush(stdout) or cout.flush()
//cout<<setprecision(p)<<fixed<<var
//use 1LL<<i to for 64 bit shifting , (ll)2 because by default 2 is ll
//take care of precedence rule of operators 
//do not forget to change the sizes of arrays and value of contants and other things after debugging  
 
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,a,n) for(i=a;i<n;++i)
#define irep(i,n,a) for(i=n;i>a;--i)
#define mod 1000000007
#define pb push_back
#define big 9223372036854775807
#define big1 LONG_MAX
#define big2 ll_MAX
#define big3 1000000000
#define sma1 LONG_MIN
#define sma2 ll_MIN
#define sma3 -1000000000
#define mp make_pair
#define dub double
#define ivec vector<ll>
#define lvec vector<long long>
#define cvec vector<char>
#define svec vector<string>
#define mt make_tuple
#define MOD 998244353
#define ld long double
#define pi acos(-1.0)
 
#define SZ(x)  (ll)(x.size())
 
//comment the below if not required
 
/*
 
#define ss second.second
#define ff first.first
#define f first
#define s second
#define sf second.first
#define fs first.second
*/
 
#define IOS std::ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
 
//cout<<"Case #"<<c<<": "<<ans<<"\n" ;

const ll N = 250001;

vector<vector<ll>> v;

vector<ll> v1,pos,ans;

ll n,m,val,i,j;

void print_ans(vector<ll> &ans,ll f)
{
	if(!f){
		cout<<"No\n";
	}
	else
	{
		cout<<"Yes\n";
		for(auto u : ans)
			cout<<u<<" ";
		cout<<"\n";
	}

	exit(0);
}

void check_4()
{
	ll i,j,c;

	for(i=1;i<SZ(v);++i)
	{
		c = 0;

		for(j=0;j<m;++j)
		{
			if(v[0][j]!=v[i][j])
				++c;
		}

		if(c>2)
			return;
	}

	print_ans(v[0],1);
}

void check_3(ll pos)
{
	ll i,j,f=1,c,val=v[0][pos];

	for(i=1;i<SZ(v);++i)
	{
		c = 0;

		for(j=0;j<m;++j)
		{
			if(j!=pos && v[i][j]!=v[0][j])
				++c;
			if((!f) && v[i][j]!=v[0][j] && j==pos)
				++c;
		}

		if(c>2){
			v[0][pos]=val;
			return;
		}
		else if(c==2 && f)
		{
			v[0][pos]=v[i][pos];
			f=0;
		}
	}

	print_ans(v[0],1);
}


void find()
{
	ll i,j,c;

	for(i=1;i<n;++i)
	{
		pos.clear();
		c=0;

		for(j=0;j<m;++j)
		{
			if(v[i][j]!=v[0][j])
			{
				++c;
				pos.pb(j);
			}
		}

		if(c>2)
			break;
	}

	if(c<=2)
	{
		print_ans(v[0],1);
	}
	else
	{
		vector<ll> temp;

		for(auto u : v[i])
			temp.pb(u);

		v.erase(v.begin()+i);

		if(c==4)
		{
			for(i=0;i<4;++i)
			{
				for(j=i+1;j<4;++j)
				{
					swap(v[0][pos[i]],temp[pos[i]]);
					swap(v[0][pos[j]],temp[pos[j]]);

					check_4();

					swap(v[0][pos[i]],temp[pos[i]]);
					swap(v[0][pos[j]],temp[pos[j]]);
				}
			}
		}
		else if(c==3)
		{
			for(i=0;i<3;++i)
			{
				swap(v[0][pos[i]],temp[pos[i]]);

				for(j=0;j<3;++j)
				{
					if(j!=i)
						check_3(pos[j]);
				}

				swap(v[0][pos[i]],temp[pos[i]]);
			}
		}

	}

}

int main()
{
	IOS;

	cin>>n>>m;

	for(i=1;i<=n;++i)
	{
		vector<ll> temp;

		for(j=1;j<=m;++j)
		{
			cin>>val;
			temp.pb(val);
		}

		v.pb(temp);
	}

	find();

	cout<<"No\n";

	return 0;
}