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:
#include <bits/stdc++.h>
using namespace std;

#define FOR(a,b) for (int a=0; a<b; a++)
#define FUR(a,b) for (int a=1; a<=b; a++)
#define ROF(a,b) for (int a=b; a-->0; )
#define RUF(a,b) for (int a=b; a>0; a--)
#define FORR(a,b,c) for (int a=b; a<c; a++)
#define all(v) begin(v),end(v)
#define rall(v) rbegin(v),rend(v)
#define xx first
#define yy second
#define ass assign
#define pb push_back
#define pob pop_back
#define pf push_front
#define pof pop_front
#define lb lower_bound 
#define ub upper_bound 

#define ll long long
#define V vector
#define pii pair<int,int>

template<class T> ostream& operator<<(ostream& os, const vector<T>& v)
{ for (const T& x: v) os << x << ' '; return os; }
template<class T> istream& operator>>(istream& is, vector<T>& v)
{ for (T& x: v) is >> x; return is; }
template<class T> bool miin(T& a, const T& b) { return a > b ? a=b,1 : 0; }
template<class T> bool maax(T& a, const T& b) { return a < b ? a=b,1 : 0; }

const int MOD = 1e9+7; // 998244353;
const ll INF = 1e18;
const char nl = '\n';
const double PI = acos(-1);
const int dx[4] = {1,0,-1,0}, dy[4] = {0,1,0,-1}; 
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count()); 

int n,m;
V<V<int>> s;
V<int> ans;
bool check(const V<int>& ref, int rem) {
    FOR(i,n) {
        int diff = 0;
        FOR(j,m) diff += (ref[j] != s[i][j]);
        if (diff <= 2) continue;
        if (diff > rem + 2) return 0;

        V<int> pos;
        FOR(j,m) if (ref[j] != s[i][j]) pos.pb(j);

        FOR(mask, 1<<diff) if (__builtin_popcount(mask) == diff-2) {
            V<int> alt = ref;
            FOR(jj,diff) if (mask & (1 << jj)) {
                int j = pos[jj];
                alt[j] = s[i][j];
            }
            if (check(alt, rem - diff + 2))
                return 1;
        }
        return 0;
    }
    ans = ref;
    return 1;
}

int main() {
    ios::sync_with_stdio(0), cin.tie(0);

    cin >> n >> m;

    s.ass(n, V<int>(m));
    FOR(i,n) cin >> s[i];

    if (check(s[0],2)) {
        cout << "Yes\n" << ans << nl;
    } else {
        cout << "No\n";
    }
}