Problem: There are N oases on a number line. The coordinate of the i-th oases from the left is x_i.

Camel hopes to visit all these oases. Initially, the volume of the hump on his back is V. When the volume of the hump is v, water of volume at most v can be stored. Water is only supplied at oases. He can get as much water as he can store at a oasis, and the same oasis can be used any number of times.

Camel can travel on the line by either walking or jumping:

* Walking over a distance of d costs water of volume d from the hump. A walk that leads to a negative amount of stored water cannot be done.
* Let v be the amount of water stored at the moment. When v>0, Camel can jump to any point on the line of his choice. After this move, the volume of the hump becomes v/2 (rounded down to the nearest integer), and the amount of stored water becomes 0.



For each of the oases, determine whether it is possible to start from that oasis and visit all the oases.

Constraints

* 2 ≤ N,V ≤ 2 × 10^5
* -10^9 ≤ x_1 < x_2 < ... < x_N ≤ 10^9
* V and x_i are all integers.

Input

Input is given from Standard Input in the following format:


N V
x_1 x_2 ... x_{N}


Output

Print N lines. The i-th line should contain `Possible` if it is possible to start from the i-th oasis and visit all the oases, and `Impossible` otherwise.

Examples

Input

3 2
1 3 6


Output

Possible
Possible
Possible


Input

7 2
-10 -4 -2 0 2 4 10


Output

Impossible
Possible
Possible
Possible
Possible
Possible
Impossible


Input

16 19
-49 -48 -33 -30 -21 -14 0 15 19 23 44 52 80 81 82 84


Output

Possible
Possible
Possible
Possible
Possible
Possible
Possible
Possible
Possible
Possible
Possible
Possible
Impossible
Impossible
Impossible
Impossible

Solution (in JAVA):

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

public class Main {

	BufferedReader br;
	PrintWriter out;
	StringTokenizer st;
	boolean eof;

	void solve() throws IOException {
		int n = nextInt();
		int v = nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			a[i] = nextInt();
		}

		int[] b = new int[n - 1];
		for (int i = 0; i < n - 1; i++) {
			b[i] = a[i + 1] - a[i];
		}

		int[] seq = new int[40];
		int ptr = 0;
		while (true) {
			seq[ptr++] = v;
			if (v == 0) {
				break;
			}
			v /= 2;
		}
		
		for (int i = 0, j = ptr - 1; i < j; i++, j--) {
			int tmp = seq[i];
			seq[i] = seq[j];
			seq[j] = tmp;
		}

		int[][] nxt = new int[ptr][n];
		int[][] prv = new int[ptr][n];

		for (int i = 0; i < ptr; i++) {
			int gap = seq[i];
			for (int j = 0; j < n;) {
				int nxtJ = j + 1;
				while (nxtJ < n && b[nxtJ - 1] <= gap) {
					nxtJ++;
				}

				for (int k = j; k < nxtJ; k++) {
					nxt[i][k] = nxtJ - 1;
					prv[i][k] = j;
				}

				j = nxtJ;
			}
		}

		int[] pref = new int[1 << (ptr - 1)];
		int[] suff = new int[1 << (ptr - 1)];

		for (int mask = 0; mask < 1 << (ptr - 1); mask++) {
			for (int i = 0; i < ptr - 1; i++) {
				if (test(mask, i)) {
					int was = pref[mask ^ (1 << i)];
					if (was == n) {
						pref[mask] = n;
					} else {
						pref[mask] = Math.max(pref[mask], nxt[i][was] + 1);
					}

					was = suff[mask ^ (1 << i)];
					if (was == n) {
						suff[mask] = n;
					} else {
						suff[mask] = Math.max(suff[mask], n - prv[i][n - 1 - was]);
					}
				}
			}
		}

		int[] maxLeft = new int[n + 1]; // index - length of right
		Arrays.fill(maxLeft, -1);
		int allMask = (1 << (ptr - 1)) - 1;
		for (int maskL = 0; maskL <= allMask; maskL++) {
			int maskR = allMask ^ maskL;

			int valL = pref[maskL];
			int valR = suff[maskR];
			
			maxLeft[valR] = Math.max(maxLeft[valR], valL);
		}

		int canL = -1;
		for (int i = 0; i < n;) {
			int j = nxt[ptr - 1][i];
			for (int k = i; k <= j; k++) {
				canL = Math.max(canL, maxLeft[n - 1 - k]);
			}

			String outp = canL >= i ? "Possible" : "Impossible";

			for (int k = i; k <= j; k++) {
				out.println(outp);
			}

			i = j + 1;
		}
	}

	boolean test(int mask, int i) {
		return ((mask >> i) & 1) == 1;
	}

	Main() throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		out = new PrintWriter(System.out);
		solve();
		out.close();
	}

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

	String nextToken() {
		while (st == null || !st.hasMoreTokens()) {
			try {
				st = new StringTokenizer(br.readLine());
			} catch (Exception e) {
				eof = true;
				return null;
			}
		}
		return st.nextToken();
	}

	String nextString() {
		try {
			return br.readLine();
		} catch (IOException e) {
			eof = true;
			return null;
		}
	}

	int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}

	long nextLong() throws IOException {
		return Long.parseLong(nextToken());
	}

	double nextDouble() throws IOException {
		return Double.parseDouble(nextToken());
	}
}