Problem: The farmer Polycarp has a warehouse with hay, which can be represented as an n × m rectangular table, where n is the number of rows, and m is the number of columns in the table. Each cell of the table contains a haystack. The height in meters of the hay located in the i-th row and the j-th column is equal to an integer ai, j and coincides with the number of cubic meters of hay in the haystack, because all cells have the size of the base 1 × 1. Polycarp has decided to tidy up in the warehouse by removing an arbitrary integer amount of cubic meters of hay from the top of each stack. You can take different amounts of hay from different haystacks. Besides, it is allowed not to touch a stack at all, or, on the contrary, to remove it completely. If a stack is completely removed, the corresponding cell becomes empty and no longer contains the stack.

Polycarp wants the following requirements to hold after the reorganization:

  * the total amount of hay remaining in the warehouse must be equal to k, 
  * the heights of all stacks (i.e., cells containing a non-zero amount of hay) should be the same, 
  * the height of at least one stack must remain the same as it was, 
  * for the stability of the remaining structure all the stacks should form one connected region. 



The two stacks are considered adjacent if they share a side in the table. The area is called connected if from any of the stack in the area you can get to any other stack in this area, moving only to adjacent stacks. In this case two adjacent stacks necessarily belong to the same area.

Help Polycarp complete this challenging task or inform that it is impossible.

Input

The first line of the input contains three integers n, m (1 ≤ n, m ≤ 1000) and k (1 ≤ k ≤ 1018) — the number of rows and columns of the rectangular table where heaps of hay are lain and the required total number cubic meters of hay after the reorganization. 

Then n lines follow, each containing m positive integers ai, j (1 ≤ ai, j ≤ 109), where ai, j is equal to the number of cubic meters of hay making the hay stack on the i-th row and j-th column of the table.

Output

In the first line print "YES" (without quotes), if Polycarpus can perform the reorganisation and "NO" (without quotes) otherwise. If the answer is "YES" (without quotes), then in next n lines print m numbers — the heights of the remaining hay stacks. All the remaining non-zero values should be equal, represent a connected area and at least one of these values shouldn't be altered.

If there are multiple answers, print any of them.

Examples

Input

2 3 35
10 4 9
9 9 7


Output

YES
7 0 7 
7 7 7 


Input

4 4 50
5 9 1 1
5 1 1 5
5 1 5 5
5 5 7 1


Output

YES
5 5 0 0 
5 0 0 5 
5 0 5 5 
5 5 5 0 


Input

2 4 12
1 1 3 1
1 6 2 4


Output

NO

Note

In the first sample non-zero values make up a connected area, their values do not exceed the initial heights of hay stacks. All the non-zero values equal 7, and their number is 5, so the total volume of the remaining hay equals the required value k = 7·5 = 35. At that the stack that is on the second line and third row remained unaltered.

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;
import java.math.BigInteger;
import java.util.Map.Entry;

import com.sun.org.apache.regexp.internal.recompile;

import static java.lang.Math.*;

public class F extends PrintWriter {

	int ansSize;

	class Unit implements Comparable<Unit> {
		final int x, y;
		final int val;

		int size = 1;
		int rank = 0;

		boolean color = false;

		Unit p, l, r, u, d;

		Unit(int x, int y, int val) {
			this.x = x;
			this.y = y;
			this.val = val;
			p = this;
		}

		void ans(int[][] ans, int h) {

			if (color || ansSize == 0 || val < h) {
				return;
			}
			color = true;
			--ansSize;
			ans[x][y] = h;

			if (l != null) {
				l.ans(ans, h);
			}
			if (r != null) {
				r.ans(ans, h);
			}
			if (u != null) {
				u.ans(ans, h);
			}
			if (d != null) {
				d.ans(ans, h);
			}

		}

		Unit getP() {
			if (p == this) {
				return p;
			}
			return p = p.getP();
		}

		void merge(Unit unit) {
			Unit a = this.getP();
			Unit b = unit.getP();

			if (a == b) {
				return;
			}

			if (a.rank == b.rank) {
				if (rnd.nextBoolean()) {
					++a.rank;
				} else {
					++b.rank;
				}
			}

			if (a.rank < b.rank) {
				a.p = b;
				b.size += a.size;
			} else {
				b.p = a;
				a.size += b.size;
			}
		}

		@Override
		public int compareTo(Unit unit) {
			int cmp;

			if ((cmp = Integer.compare(unit.val, val)) != 0) {
				return cmp;
			}

			if ((cmp = Integer.compare(x, unit.x)) != 0) {
				return cmp;
			}

			if ((cmp = Integer.compare(unit.y, y)) != 0) {
				return cmp;
			}

			return 0;
		}

	}

	void run() {
		int n = nextInt(), m = nextInt(), k = n * m;
		long sum = nextLong();

		Unit[][] unit = new Unit[n][m];
		Unit[] units = new Unit[k];

		for (int i = 0, p = 0; i < n; i++) {
			for (int j = 0; j < m; j++, p++) {
				unit[i][j] = units[p] = new Unit(i, j, nextInt());
			}
		}

		for (int i = 1; i < n; i++) {
			for (int j = 0; j < m; j++) {
				unit[i][j].l = unit[i - 1][j];
			}
		}

		for (int i = 1; i < n; i++) {
			for (int j = 0; j < m; j++) {
				unit[i - 1][j].r = unit[i][j];
			}
		}

		for (int i = 0; i < n; i++) {
			for (int j = 1; j < m; j++) {
				unit[i][j].u = unit[i][j - 1];
			}
		}
		for (int i = 0; i < n; i++) {
			for (int j = 1; j < m; j++) {
				unit[i][j - 1].d = unit[i][j];
			}
		}
		Arrays.sort(units);

		Unit[] q = new Unit[5];

		for (Unit cur : units) {
			int p = 0;
			q[p++] = cur;
			if (cur.l != null && cur.compareTo(cur.l) > 0) {
				q[p++] = cur.l;
			}
			if (cur.r != null && cur.compareTo(cur.r) > 0) {
				q[p++] = cur.r;
			}
			if (cur.d != null && cur.compareTo(cur.d) > 0) {
				q[p++] = cur.d;
			}
			if (cur.u != null && cur.compareTo(cur.u) > 0) {
				q[p++] = cur.u;
			}

			for (int i = p - 1; i > 0; i--) {
				q[i - 1].merge(q[i]);
			}

			Unit d = cur.getP();
			int h = cur.val;

			if (sum % h == 0) {
				long w = sum / h;
				if (w <= d.size) {
					println("YES");
					int[][] ans = new int[n][m];

					ansSize = (int) w;

					cur.ans(ans, h);

					for (int i = 0; i < n; i++) {
						for (int j = 0; j < m; j++) {
							print(ans[i][j]);
							print(' ');
						}
						println();
					}

					return;
				}
			}

		}

		println("NO");

	}

	void skip() {
		while (hasNext()) {
			next();
		}
	}

	int[][] nextMatrix(int n, int m) {
		int[][] matrix = new int[n][m];
		for (int i = 0; i < n; i++)
			for (int j = 0; j < m; j++)
				matrix[i][j] = nextInt();
		return matrix;
	}

	String next() {
		while (!tokenizer.hasMoreTokens())
			tokenizer = new StringTokenizer(nextLine());
		return tokenizer.nextToken();
	}

	boolean hasNext() {
		while (!tokenizer.hasMoreTokens()) {
			String line = nextLine();
			if (line == null) {
				return false;
			}
			tokenizer = new StringTokenizer(line);
		}
		return true;
	}

	int[] nextArray(int n) {
		int[] array = new int[n];
		for (int i = 0; i < n; i++) {
			array[i] = nextInt();
		}
		return array;
	}

	int nextInt() {
		return Integer.parseInt(next());
	}

	long nextLong() {
		return Long.parseLong(next());
	}

	double nextDouble() {
		return Double.parseDouble(next());
	}

	String nextLine() {
		try {
			return reader.readLine();
		} catch (IOException err) {
			return null;
		}
	}

	public F(OutputStream outputStream) {
		super(outputStream);
	}

	static BufferedReader reader;
	static StringTokenizer tokenizer = new StringTokenizer("");
	static Random rnd = new Random();
	static boolean OJ;

	public static void main(String[] args) throws IOException {
		OJ = System.getProperty("ONLINE_JUDGE") != null;
		F solution = new F(System.out);
		if (OJ) {
			reader = new BufferedReader(new InputStreamReader(System.in));
			solution.run();
		} else {
			reader = new BufferedReader(new FileReader(new File(F.class.getName() + ".txt")));
			long timeout = System.currentTimeMillis();
			while (solution.hasNext()) {
				solution.run();
				solution.println();
				solution.println("----------------------------------");
			}
			solution.println("time: " + (System.currentTimeMillis() - timeout));
		}
		solution.close();
		reader.close();
	}
}