Problem: Walking along a riverside, Mino silently takes a note of something.

"Time," Mino thinks aloud.

"What?"

"Time and tide wait for no man," explains Mino. "My name, taken from the river, always reminds me of this."

"And what are you recording?"

"You see it, tide. Everything has its own period, and I think I've figured out this one," says Mino with confidence.

Doubtfully, Kanno peeks at Mino's records. 

The records are expressed as a string s of characters '0', '1' and '.', where '0' denotes a low tide, '1' denotes a high tide, and '.' denotes an unknown one (either high or low).

You are to help Mino determine whether it's possible that after replacing each '.' independently with '0' or '1', a given integer p is not a period of the resulting string. In case the answer is yes, please also show such a replacement to Mino.

In this problem, a positive integer p is considered a period of string s, if for all 1 ≤ i ≤ \lvert s \rvert - p, the i-th and (i + p)-th characters of s are the same. Here \lvert s \rvert is the length of s.

Input

The first line contains two space-separated integers n and p (1 ≤ p ≤ n ≤ 2000) — the length of the given string and the supposed period, respectively.

The second line contains a string s of n characters — Mino's records. s only contains characters '0', '1' and '.', and contains at least one '.' character.

Output

Output one line — if it's possible that p is not a period of the resulting string, output any one of such strings; otherwise output "No" (without quotes, you can print letters in any case (upper or lower)).

Examples

Input

10 7
1.0.1.0.1.


Output

1000100010


Input

10 6
1.0.1.1000


Output

1001101000


Input

10 9
1........1


Output

No

Note

In the first example, 7 is not a period of the resulting string because the 1-st and 8-th characters of it are different.

In the second example, 6 is not a period of the resulting string because the 4-th and 10-th characters of it are different.

In the third example, 9 is always a period because the only constraint that the first and last characters are the same is already satisfied.

Note that there are multiple acceptable answers for the first two examples, you can print any of them.

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;

public class Main {
	InputReader scn;
	PrintWriter out;
	String INPUT = "";

	void solve() {
		int n = scn.nextInt(), k = scn.nextInt(), p = 0, x = 0;
		String str = (" " + scn.next());
		boolean b = false;
		for (int i = 1; i <= n; i++) {
			int j = i;
			p = i;
			x++;
			while (j <= n && j != i + k) {
				if (str.charAt(j) == '.') {
					b = true;
				}
				j++;
			}
			i = j - 1;
		}

		if (x == 1) {
			out.println("NO");
			return;
		}

		StringBuilder sb = new StringBuilder();
		for (int i = p; i <= n; i++) {
			sb.append(str.charAt(i));
		}

		StringBuilder ans = new StringBuilder();
		if (x > 2) {
			if (!b) {
				TreeSet<String> set = new TreeSet<>();
				for (int i = 1; i <= n; i += p) {
					if (i + k <= n) {
						set.add(str.substring(i, i + k));
					} else {
						set.add(str.substring(i));
					}
				}
				if (set.size() == 1 || set.size() > 2) {
					out.println("NO");
				} else {
					String s1 = set.pollFirst(), s2 = set.pollFirst();
					for (int i = 0; i < Math.min(s1.length(), s2.length()); i++) {
						if (s1.charAt(i) != s2.charAt(i)) {
							out.println(str.substring(1));
							return;
						}
					}
					out.println("NO");
				}
				return;
			} else {
				StringBuilder z = new StringBuilder(str);
				for (int i = 1; i <= n; i++) {
					if (z.charAt(i) != '.') {
						ans.append(z.charAt(i));
					} else {
						if (i + k <= n) {
							if (z.charAt(i + k) == '1') {
								z.setCharAt(i, '0');
							} else if (z.charAt(i + k) == '0') {
								z.setCharAt(i, '1');
							} else {
								z.setCharAt(i, '1');
								z.setCharAt(i + k, '0');
							}
						} else if (i - k > 0) {
							if (z.charAt(i - k) == '1') {
								z.setCharAt(i, '0');
							} else if (z.charAt(i - k) == '0') {
								z.setCharAt(i, '1');
							} else {
								z.setCharAt(i, '1');
								z.setCharAt(i - k, '0');
							}
						}
						ans.append(z.charAt(i));
					}
				}
				out.println(ans);
			}
			return;
		}

		if (!b) {
			TreeSet<String> set = new TreeSet<>();
			for (int i = 1; i <= n; i += p) {
				if (i + k <= n) {
					set.add(str.substring(i, i + k));
				} else {
					set.add(str.substring(i));
				}
			}
			if (set.size() == 1 || set.size() > 2) {
				out.println("NO");
			} else {
				String s1 = set.pollFirst(), s2 = set.pollFirst();
				for (int i = 0; i < Math.min(s1.length(), s2.length()); i++) {
					if (s1.charAt(i) != s2.charAt(i)) {
						out.println(str.substring(1));
						return;
					}
				}
				out.println("NO");
			}
			return;
		}

		boolean xx = false;
		StringBuilder z = new StringBuilder(str);
		for (int i = 1, j = p; j <= n; i++, j++) {
			if (str.charAt(i) == str.charAt(j) && str.charAt(i) != '.') {

			} else {
				xx = true;
			}
		}

		if (!xx) {
			out.println("NO");
		} else {
			for (int i = 1; i <= n; i++) {
				if (z.charAt(i) != '.') {
					ans.append(z.charAt(i));
				} else {
					if (i + k <= n) {
						if (z.charAt(i + k) == '1') {
							z.setCharAt(i, '0');
						} else if (z.charAt(i + k) == '0') {
							z.setCharAt(i, '1');
						} else {
							z.setCharAt(i, '1');
							z.setCharAt(i + k, '0');
						}
					} else if (i - k > 0) {
						if (z.charAt(i - k) == '1') {
							z.setCharAt(i, '0');
						} else if (z.charAt(i - k) == '0') {
							z.setCharAt(i, '1');
						} else {
							z.setCharAt(i, '1');
							z.setCharAt(i - k, '0');
						}
					} else {
						z.setCharAt(i, '1');
					}
					ans.append(z.charAt(i));
				}
			}
			out.println(ans);
		}
	}

	void run() throws Exception {
		boolean onlineJudge = System.getProperty("ONLINE_JUDGE") != null;
		out = new PrintWriter(System.out);
		scn = new InputReader(onlineJudge);
		long time = System.currentTimeMillis();
		solve();
		out.flush();
		if (!onlineJudge) {
			System.out.println(Arrays.deepToString(new Object[] { System.currentTimeMillis() - time + " ms" }));
		}
	}

	public static void main(String[] args) throws Exception {
		new Main().run();
	}

	class InputReader {
		InputStream is;

		public InputReader(boolean onlineJudge) {
			is = onlineJudge ? System.in : new ByteArrayInputStream(INPUT.getBytes());
		}

		byte[] inbuf = new byte[1024];
		public int lenbuf = 0, ptrbuf = 0;

		int readByte() {
			if (lenbuf == -1)
				throw new InputMismatchException();
			if (ptrbuf >= lenbuf) {
				ptrbuf = 0;
				try {
					lenbuf = is.read(inbuf);
				} catch (IOException e) {
					throw new InputMismatchException();
				}
				if (lenbuf <= 0)
					return -1;
			}
			return inbuf[ptrbuf++];
		}

		boolean isSpaceChar(int c) {
			return !(c >= 33 && c <= 126);
		}

		int skip() {
			int b;
			while ((b = readByte()) != -1 && isSpaceChar(b))
				;
			return b;
		}

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

		char nextChar() {
			return (char) skip();
		}

		String next() {
			int b = skip();
			StringBuilder sb = new StringBuilder();
			while (!(isSpaceChar(b))) { // when nextLine, (isSpaceChar(b) && b != ' ')
				sb.appendCodePoint(b);
				b = readByte();
			}
			return sb.toString();
		}

		char[] next(int n) {
			char[] buf = new char[n];
			int b = skip(), p = 0;
			while (p < n && !(isSpaceChar(b))) {
				buf[p++] = (char) b;
				b = readByte();
			}
			return n == p ? buf : Arrays.copyOf(buf, p);
		}

		int nextInt() {
			int num = 0, b;
			boolean minus = false;
			while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
				;
			if (b == '-') {
				minus = true;
				b = readByte();
			}

			while (true) {
				if (b >= '0' && b <= '9') {
					num = num * 10 + (b - '0');
				} else {
					return minus ? -num : num;
				}
				b = readByte();
			}
		}

		long nextLong() {
			long num = 0;
			int b;
			boolean minus = false;
			while ((b = readByte()) != -1 && !((b >= '0' && b <= '9') || b == '-'))
				;
			if (b == '-') {
				minus = true;
				b = readByte();
			}

			while (true) {
				if (b >= '0' && b <= '9') {
					num = num * 10 + (b - '0');
				} else {
					return minus ? -num : num;
				}
				b = readByte();
			}
		}

		char[][] nextMatrix(int n, int m) {
			char[][] map = new char[n][];
			for (int i = 0; i < n; i++)
				map[i] = next(m);
			return map;
		}

		int[] nextArray(int n, boolean isOneInd) {
			int k = isOneInd ? 1 : 0;
			int[] a = new int[n + k];
			for (int i = k; i < n + k; i++)
				a[i] = nextInt();
			return a;
		}

		int[] shuffle(int[] arr) {
			Random r = new Random();
			for (int i = 1, j; i < arr.length; i++) {
				j = r.nextInt(i);
				arr[i] = arr[i] ^ arr[j];
				arr[j] = arr[i] ^ arr[j];
				arr[i] = arr[i] ^ arr[j];
			}
			return arr;
		}
	}
}