#include <iostream>
using namespace std;

#define forn(i, n) for (int i = 0; i < (int)(n); ++i)

const int MAXN = 250000;
int h, w, a[MAXN];

bool go(int dep) {
	if (dep > 2) return 0;

	forn (i, h) {
		int k = 0;
		forn (j, w) {
			k += a[i * w + j] != a[j];
		}

		if (k > 4) return 0;

		if (k > 2) {
			forn (j, w) {
				if (a[i * w + j] != a[j]) {
					int t = a[j];
					a[j] = a[i * w + j];
					if (go(dep + 1)) return 1;
					a[j] = t;
				}
			}
			return 0;
		}
	}
	return 1;
}

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

	cin >> h >> w;
	forn (i, h * w) cin >> a[i];

	if (go(0)) {
		cout << "Yes\n";
		forn (i, w) cout << a[i] << ' ';
		cout << '\n';
	} else {
		cout << "No\n";
	}
}
