Problem: Filya just learned new geometry object — rectangle. He is given a field consisting of n × n unit cells. Rows are numbered from bottom to top with integer from 1 to n. Columns are numbered from left to right with integers from 1 to n. Cell, located at the intersection of the row r and column c is denoted as (r, c). Filya has painted two rectangles, such that their sides are parallel to coordinate axes and each cell lies fully inside or fully outside each of them. Moreover, no cell lies in both rectangles.

Later, hedgehog Filya became interested in the location of his rectangles but was unable to find the sheet of paper they were painted on. They were taken by Sonya and now she wants to play a little game with Filya. He tells her a query rectangle and she replies with the number of initial rectangles that lie fully inside the given query rectangle. The query rectangle should match the same conditions as initial rectangles. Rectangle lies fully inside the query if each o its cells lies inside the query.

Filya knows Sonya really well, so is sure that if he asks more than 200 questions she will stop to reply.

Input

The first line of the input contains an integer n (2 ≤ n ≤ 216) — size of the field.

For each query an integer between 0 and 2 is returned — the number of initial rectangles that lie fully inside the query rectangle.

Output

To make a query you have to print "? x1 y1 x2 y2" (without quotes) (1 ≤ x1 ≤ x2 ≤ n, 1 ≤ y1 ≤ y2 ≤ n), where (x1, y1) stands for the position of the bottom left cell of the query and (x2, y2) stands for the up right cell of the query. You are allowed to ask no more than 200 queries. After each query you should perform "flush" operation and read the answer.

In case you suppose you've already determined the location of two rectangles (or run out of queries) you should print "! x11 y11 x12 y12 x21 y21 x22 y22" (without quotes), where first four integers describe the bottom left and up right cells of the first rectangle, and following four describe the corresponding cells of the second rectangle. You can print the rectangles in an arbitrary order. After you have printed the answer, print the end of the line and perform "flush". Your program should terminate immediately after it print the answer.

Interaction

To flush you can use (just after printing an integer and end-of-line): 

  * fflush(stdout) in C++; 
  * System.out.flush() in Java; 
  * stdout.flush() in Python; 
  * flush(output) in Pascal; 
  * See the documentation for other languages. 



You will get the Wrong Answer verdict if you ask more than 200 queries, or if you print an incorrect coordinates.

You will get the Idleness Limit Exceeded verdict if you don't print anything (but you should) or if you forget about flushing the output (more info below).

Hacking.

The first line should contain an integer n (2 ≤ n ≤ 216).

The second line should contain four integers x1, y1, x2, y2 (1 ≤ x1 ≤ x2 ≤ n, 1 ≤ y1 ≤ y2 ≤ n) — the description of the first rectangle.

The third line contains the description of the second rectangle in the similar way.

Example

Input

5
2
1
0
1
1
1
0
1


Output

? 1 1 5 5
? 1 1 3 3
? 1 1 3 1
? 2 2 2 2
? 3 3 5 5
? 3 3 3 5
? 3 3 3 4
? 3 4 3 5
! 2 2 2 2 3 4 3 5

Solution (in JAVA):

Solution:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;

public class D {





	public static void main(String[] args) throws IOException {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();



		int bx = 1;
		int ex = n;
		int by = 1;
		int ey = n;
		int [] a = new int [n];
		Arrays.fill(a, -1);


		int ans ;
		int tx = bx;
		while(tx<=ex){
			int mx = (tx+ex)/2;
			System.out.println("? "+bx+" "+by+" "+mx+" "+ey);
			System.out.flush();
			ans = sc.nextInt();
			if(ans==2){

				ex = mx;
				a[mx-1]=2;
				if(ex == 1||a[ex-2] < 2&&a[ex-2]>-1){
					break;
				}
			}else{
				if(mx == n|| a[mx]==2){
					ex = Math.min(n, mx+1);
					break;
				}
				if(tx==mx) tx = mx+1;
				else tx = mx;
				a[mx-1]=ans;
			}

		}
		Arrays.fill(a, -1);
		tx = ex;
		while(bx<=tx){
			int mx = (tx+bx)/2;

			System.out.println("? "+mx+" "+by+" "+ex+" "+ey);
			System.out.flush();
			ans = sc.nextInt();
			if(ans==2){

				a[mx-1]=2;
				if(mx ==ex||a[mx]<2&&a[mx]>-1){
					bx = mx;
					break;
				}

				if(bx == mx)
					bx = mx+1;
				else bx = mx;
			}else{
				tx = mx;
				a[tx-1]=ans;
				if(mx ==1||a[mx-2]==2){
					bx =Math.max(1, mx-1);
					break;
				}

			}

		}

		Arrays.fill(a, -1);


		int ty = by;
		while(ty<=ey){
			int my = (ty+ey)/2;
			System.out.println("? "+bx+" "+by+" "+ex+" "+my);
			System.out.flush();
			ans = sc.nextInt();
			if(ans==2){

				ey = my;
				a[my-1]=2;
				if(ey == 1||a[ey-2] < 2&&a[ey-2]>-1){
					break;
				}
			}else{

				if(my == n|| a[my]==2){
					ey = Math.min(n, my+1);
					break;
				}
				if(ty == my)
					ty = my+1;
				else ty = my;
				a[my-1]=ans;
			}

		}
		Arrays.fill(a, -1);
		ty = ey;
		while(by<=ty){
			int my = (ty+by)/2;
//			System.out.println(by+" "+ty);
			System.out.println("? "+bx+" "+my+" "+ex+" "+ey);
			System.out.flush();
			ans = sc.nextInt();
			if(ans==2){

				a[my-1]=2;
				if(my ==ey||a[my]<2&&a[my]>-1){
					by = my;
					break;
				}
				if(by == my) by = my+1;
				else by = my;
			}else{
				ty = my;
				a[ty-1]=ans;
				if(my ==1||a[my-2]==2){
					by = Math.max(1,my-1);
					break;
				}
			}

		}

		//		System.out.println(bx+" "+by+" "+ex+" "+ey);



		int e1x=ex;
		int e1y=ey;
		int b2x=bx;
		int b2y=by;

//		System.out.println(bx+" "+by+" "+ex+" "+ey);
		int t = bx;
		Arrays.fill(a, -1);

		
		while(t<=e1x){
			int mx = (t+e1x)/2;
			System.out.println("? "+bx+" "+by+" "+mx+" "+ey);
			System.out.flush();
			ans = sc.nextInt();
			if(ans>0){

				e1x = mx;
				a[mx-1]=ans;
				if(e1x == bx||a[e1x-2] == 0){
					break;
				}
			}
			else{
				if(mx == ex|| a[mx]>0){
					e1x = Math.min(mx+1, ex);
					break;
				}
				if(t==mx) t = mx+1;
				else t = mx;
				a[mx-1]=ans;
			}

		}


		t = by;
		Arrays.fill(a, -1);


		while(t<=e1y){
			int my = (t+e1y)/2;
			System.out.println("? "+bx+" "+by+" "+ex+" "+my);
			System.out.flush();
			ans = sc.nextInt();
			if(ans>0){

				e1y = my;
				a[my-1]=ans;
				if(e1y == by||a[e1y-2] == 0){
					break;
				}
			}
			else{
				if(my == ey|| a[my]>0){
					e1y = Math.min(my+1, ey);
					break;
				}
				if(t==my) t = my+1;
				else t = my;
				a[my-1]=ans;
			}

		}



		Arrays.fill(a, -1);
		t = ex;
		while(b2x<=t){
			int mx = (t+b2x)/2;

			System.out.println("? "+mx+" "+by+" "+ex+" "+ey);
			System.out.flush();
			ans = sc.nextInt();
			if(ans>0){

				a[mx-1]=ans;
				if(mx ==ex||a[mx]==0){
					b2x = mx;
					break;
				}

				if(b2x == mx)
					b2x = mx+1;
				else b2x = mx;
			}else{
				t = mx;
				a[t-1]=ans;
				if(mx ==bx||a[mx-2]>0){
					b2x = Math.max(bx, mx-1);
					break;
				}

			}

		}

		//		System.out.println(b2x);
		Arrays.fill(a, -1);
		t = ey;
		while(b2y<=ey){
			int my = (t+b2y)/2;

			System.out.println("? "+bx+" "+my+" "+ex+" "+ey);
			System.out.flush();
			ans = sc.nextInt();
			if(ans>0){

				a[my-1]=ans;
				if(my ==ey||a[my]==0){
					b2y = my;
					break;
				}

				if(b2y == my)
					b2y = my+1;
				else b2y = my;
			}else{
				t = my;
				a[t-1]=ans;
				if(my ==by||a[my-2]>0){
					b2y = Math.max(by, my-1);
					break;
				}

			}

		}

		if(e1x>=bx&&e1y>=by&&ex>=b2x&&ey>=b2y){

			System.out.println("? "+bx+" "+by+" "+e1x+" "+e1y);
			System.out.flush();
			ans = sc.nextInt();
			if(ans == 1){
				System.out.println("? "+b2x+" "+b2y+" "+ex+" "+ey);
				System.out.flush();
				ans = sc.nextInt();

				if(ans == 1){
					System.out.println("! "+bx+" "+by+" "+e1x+" "+e1y+" "+b2x+" "+b2y+" "+ex+" "+ey);
					System.out.flush();
					return;
				}
			}
		}


		if(e1x>=b2x&&e1y>=by&&ex>=bx&&ey>=b2y){
			System.out.println("? "+b2x+" "+by+" "+e1x+" "+e1y);
			System.out.flush();
			ans = sc.nextInt();
			if(ans == 1){
				System.out.println("? "+bx+" "+b2y+" "+ex+" "+ey);
				System.out.flush();
				ans = sc.nextInt();

				if(ans == 1){
					System.out.println("! "+b2x+" "+by+" "+e1x+" "+e1y+" "+bx+" "+b2y+" "+ex+" "+ey);
					System.out.flush();
					return;
				}
			}
		}

		if(e1x>=bx&&e1y>=b2y&&ex>=b2x&&ey>=by){
			System.out.println("? "+bx+" "+b2y+" "+e1x+" "+e1y);
			System.out.flush();
			ans = sc.nextInt();
			if(ans == 1){
				System.out.println("? "+b2x+" "+by+" "+ex+" "+ey);
				System.out.flush();
				ans = sc.nextInt();

				if(ans == 1){
					System.out.println("! "+bx+" "+b2y+" "+e1x+" "+e1y+" "+b2x+" "+by+" "+ex+" "+ey);
					System.out.flush();
					return;
				}
			}
		}


		if(ex>=bx&&e1y>=by&&e1x>=b2x&&ey>=b2y){
			System.out.println("? "+bx+" "+by+" "+ex+" "+e1y);
			System.out.flush();
			ans = sc.nextInt();
			if(ans == 1){
				System.out.println("? "+b2x+" "+b2y+" "+e1x+" "+ey);
				System.out.flush();
				ans = sc.nextInt();

				if(ans == 1){
					System.out.println("! "+bx+" "+by+" "+ex+" "+e1y+" "+b2x+" "+b2y+" "+e1x+" "+ey);
					System.out.flush();
					return;
				}
			}
		}


		if(e1x>=bx&&ey>=by&&ex>=b2x&&e1y>=b2y){
			System.out.println("? "+bx+" "+by+" "+e1x+" "+ey);
			System.out.flush();
			ans = sc.nextInt();
			if(ans == 1){
				System.out.println("? "+b2x+" "+b2y+" "+ex+" "+e1y);
				System.out.flush();
				ans = sc.nextInt();

				if(ans == 1){
					System.out.println("! "+bx+" "+by+" "+e1x+" "+ey+" "+b2x+" "+b2y+" "+ex+" "+e1y);
					System.out.flush();
					return;
				}
			}
		}

		if(e1x>=b2x&&e1y>=b2y&&ex>=bx&&ey>=by){
			System.out.println("? "+b2x+" "+b2y+" "+e1x+" "+e1y);
			System.out.flush();
			ans = sc.nextInt();
			if(ans == 1){
				System.out.println("? "+bx+" "+by+" "+ex+" "+ey);
				System.out.flush();
				ans = sc.nextInt();

				if(ans == 1){

					System.out.println("! "+b2x+" "+b2y+" "+e1x+" "+e1y+" "+bx+" "+by+" "+ex+" "+ey);
					System.out.flush();
					return;
				}
			}
		}


		if(ex>=b2x&&e1y>=by&&e1x>=bx&&ey>=b2y){
			System.out.println("? "+b2x+" "+by+" "+ex+" "+e1y);
			System.out.flush();
			ans = sc.nextInt();
			if(ans == 1){
				System.out.println("? "+bx+" "+b2y+" "+e1x+" "+ey);
				System.out.flush();
				ans = sc.nextInt();

				if(ans == 1){
					System.out.println("! "+b2x+" "+by+" "+ex+" "+e1y+" "+bx+" "+b2y+" "+e1x+" "+ey);
					System.out.flush();
					return;
				}
			}
		}

		if(e1x>=b2x&&ey>=by&&ex>=bx&&e1y>=b2y){
			System.out.println("? "+b2x+" "+by+" "+e1x+" "+ey);
			System.out.flush();
			ans = sc.nextInt();
			if(ans == 1){
				System.out.println("? "+bx+" "+b2y+" "+ex+" "+e1y);
				System.out.flush();
				ans = sc.nextInt();

				if(ans == 1){
					System.out.println("! "+b2x+" "+by+" "+e1x+" "+ey+" "+bx+" "+b2y+" "+ex+" "+e1y);
					System.out.flush();
					return;
				}
			}

		}
	}


	static class Scanner 



	{
		StringTokenizer st;
		BufferedReader br;

		public Scanner(InputStream s){	br = new BufferedReader(new InputStreamReader(s));}

		public String next() throws IOException 
		{
			while (st == null || !st.hasMoreTokens()) 
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

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

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

		public String nextLine() throws IOException {return br.readLine();}


		public double nextDouble() throws IOException
		{
			String x = next();
			StringBuilder sb = new StringBuilder("0");
			double res = 0, f = 1;
			boolean dec = false, neg = false;
			int start = 0;
			if(x.charAt(0) == '-')
			{
				neg = true;
				start++;
			}
			for(int i = start; i < x.length(); i++)
				if(x.charAt(i) == '.')
				{
					res = Long.parseLong(sb.toString());
					sb = new StringBuilder("0");
					dec = true;
				}
				else
				{
					sb.append(x.charAt(i));
					if(dec)
						f *= 10;
				}
			res += Long.parseLong(sb.toString()) / f;
			return res * (neg?-1:1);
		}

		public boolean ready() throws IOException {return br.ready();}



	}

}