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:
// others
#pragma GCC optimize(3)
#include <bits/stdc++.h>
#define debug(x) cout<<#x<<":"<<x<<endl;
#define dl(x) printf("%lld\n",x);
#define di(x) printf("%d\n",x);
#define _CRT_SECURE_NO_WARNINGS
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> PII;
typedef vector<int> VI;
const int INF = 0x3f3f3f3f;
const int N = 4e5 + 10;
const ll mod= 1000000007;
const double eps = 1e-9;
const double PI = acos(-1);
template<typename T>inline void read(T &a){char c=getchar();T x=0,f=1;while(!isdigit(c)){if(c=='-')f=-1;c=getchar();}
while(isdigit(c)){x=(x<<1)+(x<<3)+c-'0';c=getchar();}a=f*x;}
int gcd(int a,int b){return (b>0)?gcd(b,a%b):a;}
vector<int> a[N];
int n,m;
int aaa[N];

int diff(){
    int p = 0;
    for(int i = 2;i <= n;i++){
        int sum = 0;
        for(int j = 0;j < m;j++)
            sum += (a[i][j] != a[1][j]);
        p = max(p,sum);
        aaa[i] = sum;
    }
    return p;
}

int diff(vector<int> p1,vector<int> p2){
    int res = 0;
    for(int i = 0;i < m;i++) res += (p1[i] != p2[i]);
    return res;
}

bool diff(vector<int> &v,int p){
    bool flag = 1;
    for(int i = 1;i <= n;i++){
        int cnt = diff(v,a[i]);
        if(cnt <= 2) continue;
        if(cnt > 3) return false;
        if(v[p] != a[i][p]){
            if(flag) v[p] = a[i][p];
            else return false;
            flag = false;
        }
        else return false;
    }
    return 1;
}

bool diff(vector<int> v){
    for(int i = 1;i <= n;i++){
        int sum = 0;
        for(int j = 0;j < m;j++) sum += (a[i][j] != v[j]);
        if(sum > 2) return false;
    }
    return true;
}

int main(){
    read(n),read(m);
    for(int i = 1;i <= n;i++)
        for(int j = 1;j <= m;j++){
            int x;
            read(x);
            a[i].pb(x);
        }
    int p = diff();
    if(p <= 2){
        puts("Yes");
        for(int i = 0;i < m;i++) printf("%d ",a[1][i]);
        return 0;
    }
    if(p >= 5){
        puts("No");
        return 0;
    }
    if(p == 3){
        for(int i = 2;i <= n;i++){
            if(aaa[i] <= 2) continue;
            vector<int> p;
            for(int j = 0;j < m;j++) if(a[1][j] != a[i][j]) p.pb(j);
            for(int p1 = 0;p1 < 3;p1++)
                for(int p2 = 0;p2 < 3;p2++){
                    if(p1 == p2) continue;
                    vector<int> back = a[1];
                    back[p[p1]] = a[i][p[p1]];
                    if(diff(back,p[p2])){
                        puts("Yes");
                        for(int ppppp = 0;ppppp < m;ppppp++) printf("%d ",back[ppppp]);
                        return 0;
                    }
                }
        }
        puts("No");
    }
    if(p == 4){
        for(int i = 2;i <= n;i++){
            if(aaa[i] <= 3) continue;
            vector<int> p;
            for(int j = 0;j < m;j++) if(a[1][j] != a[i][j]) p.pb(j);
            for(int p1 = 0;p1 < 4;p1++)
                for(int p2 = 0;p2 < 4;p2++){
                    if(p1 == p2) continue;
                    vector<int> back = a[1];
                    back[p[p1]] = a[i][p[p1]];
                    back[p[p2]] = a[i][p[p2]];
                    if(diff(back)){
                        puts("Yes");
                        for(int ppppp = 0;ppppp < m;ppppp++) printf("%d ",back[ppppp]);
                        return 0;
                    }
                }
        }
        puts("No");
    }
    return 0;
}

/**
*　　┏┓　　　┏┓+ +
*　┏┛┻━━━┛┻┓ + +
*　┃　　　　　　　┃
*　┃　　　━　　　┃ ++ + + +
*  ████━████+
*  ◥██◤　◥██◤ +
*　┃　　　┻　　　┃
*　┃　　　　　　　┃ + +
*　┗━┓　　　┏━┛
*　　　┃　　　┃ + + + +Code is far away from 　
*　　　┃　　　┃ + bug with the animal protecting
*　　　┃　 　 ┗━━━┓ 神兽保佑,代码无bug　
*　　　┃ 　　　　　　 ┣┓
*　　  ┃ 　　　　　 　┏┛
*　    ┗┓┓┏━┳┓┏┛ + + + +
*　　　　┃┫┫　┃┫┫
*　　　　┗┻┛　┗┻┛+ + + +
*/