Problem: The graph is called tree if it is connected and has no cycles. Suppose the tree is rooted at some vertex. Then tree is called to be perfect k-ary tree if each vertex is either a leaf (has no children) or has exactly k children. Also, in perfect k-ary tree all leafs must have same depth.

For example, the picture below illustrates perfect binary tree with 15 vertices:

<image>

There is a perfect k-ary tree with n nodes. The nodes are labeled with distinct integers from 1 to n, however you don't know how nodes are labelled. Still, you want to find the label of the root of the tree.

You are allowed to make at most 60 ⋅ n queries of the following type:

  * "? a b c", the query returns "Yes" if node with label b lies on the path from a to c and "No" otherwise. 



Both a and c are considered to be lying on the path from a to c.

When you are ready to report the root of the tree, print 

  * "! s", where s is the label of the root of the tree. 



It is possible to report the root only once and this query is not counted towards limit of 60 ⋅ n queries.

Interaction

The first line of the standard input stream contains two integers n and k (3 ≤ n ≤ 1500, 2 ≤ k < n) — the number of nodes in the tree and the value of k. 

It is guaranteed that n is such that the tree forms a perfect k-ary tree.

You can ask at most 60 ⋅ n queries. To ask a query, print a line of form "? a b c", where 1 ≤ a, b, c ≤ n. After that you should read a single line containing "Yes" or "No" depending on the answer of the query.

The tree is fixed for each test and it doesn't depend on your queries.

When you are ready to print the answer, print a line of the form "! s", where s is the label of the root vertex and then terminate your program.

After printing each query do not forget to print end of line and flush the output. Otherwise you may get Idleness limit exceeded. To do this, use:

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



In case your program will make more than 60 ⋅ n queries, but in other aspects would follow the interaction protocol and terminate coorectly, it will get verdict «Wrong Answer».

Hacks

To hack the solution use the following test format:

The first line should contain integers n and k (3 ≤ n ≤ 1500, 2 ≤ k ≤ 1500) — the number of vertices and the k parameter of the tree.

Of course, the value of n must correspond to the size of the valid k-ary tree of some depth.

The second line should contain a_1, a_2, …, a_n (1 ≤ a_i ≤ n) — the labels of the tree in the natural order, all labels must be distinct.

Let's call the following ordering of the tree vertices to be natural: first the root of the tree goes, then go all vertices on depth of one edge from root, ordered from left to right, then go all vertices on depth of two edges from root, ordered from left to right, and so on until the maximum depth.

This way, the a_1 is the answer for the hack.

Example

Input

3 2

No

Yes


Output

? 1 3 2

? 1 2 3

! 2

Note

The tree in the example is as follows:

<image>

The input and output for example illustrate possible interaction on that test (empty lines are inserted only for clarity).

The hack corresponding to the example would look like:
    
    
      
    3 2  
    2 3 1  
    

Solution (in JAVA):

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

public class D implements Runnable {
	public static void main (String[] args) {new Thread(null, new D(), "_cf", 1 << 28).start();}

	int n, k, root = -2, asked = 0, height;
	boolean[] ignore, adj[];
	int[] subSize, depth;
	FastScanner fs;
	PrintWriter out;
	
	public void run() {
		fs = new FastScanner();
		out = new PrintWriter(System.out);
		System.err.println("Go!");

		n = fs.nextInt();
		k = fs.nextInt();
		ignore = new boolean[n];
		ignore[0] = true;
		subSize = new int[n];
		depth = new int[n];
		adj = new boolean[n][n];
		
		height = 0;
		int x = 0, add = 1;
		while(x < n) {
			height++;
			x += add;
			add *= k;
		}
		if(x != n) throw new RuntimeException("???");
		
		int at = 0;
		while(root < 0) {
			at = findNext(at);
		}
		
		out.printf("! %d\n", root+1);
		
		out.close();
	}
	
	int findNext(int root) {
		int next = 1;
		while(next < n && ignore[next]) next++;
		if(next == n) return -1;
		for(int i = 1; i < n; i++) if(!ignore[i]) {
			if(i == next || i == root) continue;
			boolean on = ask(root, i, next);
			if(on) {
				next = i;
			}
		}
		if(root == next) {
			this.root = next;
			return -1;
		}
		subSize[root] = 1; 
		subSize[next] = 1;

		ignore[root] = ignore[next] = true;
		
		//root and next are adjacent
		//find subtree relations
		
		adj[root][next] = adj[next][root] = true;
		boolean[] toRoot = new boolean[n];
		boolean[] toNext = new boolean[n];
		
		int smaller = 0;
		for(int i = 1; i < n; i++) {
			if(adj[root][i] && i != root && i != next) {
				subSize[root] += subSize[i];
				continue;
			}
			else if(adj[next][i] && i != root && i != next) {
				subSize[next] += subSize[i];
				continue;
			}
			if(ignore[i]) continue;
			if(i == next || i == root) continue;
			boolean on = ask(i, root, next);
			if(on) {
				toRoot[i] = true;
				subSize[root]++;
			}
			else {
				toNext[i] = true;
				subSize[next]++;
			}
		}
		
//		System.out.println(root + " " + next);
//		System.out.println(subSize[root] + " " + subSize[next]);
//		System.out.println(Arrays.toString(ignore));
//		System.out.println(Arrays.toString(subSize));
		
		if(subSize[root] > subSize[next]) {
			smaller = -1;
			subSize[root] += subSize[next];
			int d = findDepth(next);
			depth[next] = d;
			depth[root] = d+1;
			for(int i = 1; i < n; i++) if(toNext[i]) ignore[i] = true;
		}
		else {
			smaller = 1;
			subSize[next] += subSize[root];
			depth[root] = findDepth(root);
			depth[next] = depth[root]+1;
			for(int i = 1; i < n; i++) if(toRoot[i]) ignore[i] = true;
		}
		if(depth[next] == height) {
			this.root = next;
		}
		else if(depth[root] == height) {
			this.root = root;
		}

		
		return smaller == -1 ? root : next;
	}
	
	int findDepth(int root) {
		int dep = 0;
		int nodes = 0;
		int x = 1;
		while(nodes < subSize[root]) {
			dep++;
			nodes += x;
			x *= k;
		}
//		System.out.println("N " + nodes);
//		if(nodes != subSize[root]) throw new RuntimeException("Something is wrong");
		return dep;
	}
	
	boolean ask(int a, int b, int c) {
		asked++;
		if(asked > 60*n) throw new RuntimeException("Too many queries");
		out.printf("? %d %d %d\n", a+1, b+1, c+1);
		out.flush();
		String str = fs.next();
		return str.charAt(0) == 'Y';
	}
	
	class FastScanner {
		public int BS = 1<<16;
		public char NC = (char)0;
		byte[] buf = new byte[BS];
		int bId = 0, size = 0;
		char c = NC;
		double num = 1;
		BufferedInputStream in;

		public FastScanner() {
			in = new BufferedInputStream(System.in, BS);
		}

		public FastScanner(String s) throws FileNotFoundException {
			in = new BufferedInputStream(new FileInputStream(new File(s)), BS);
		}

		public char nextChar(){
			while(bId==size) {
				try {
					size = in.read(buf);
				}catch(Exception e) {
					return NC;
				}                
				if(size==-1)return NC;
				bId=0;
			}
			return (char)buf[bId++];
		}

		public int nextInt() {
			return (int)nextLong();
		}

		public long nextLong() {
			num=1;
			boolean neg = false;
			if(c==NC)c=nextChar();
			for(;(c<'0' || c>'9'); c = nextChar()) {
				if(c=='-')neg=true;
			}
			long res = 0;
			for(; c>='0' && c <='9'; c=nextChar()) {
				res = (res<<3)+(res<<1)+c-'0';
				num*=10;
			}
			return neg?-res:res;
		}

		public double nextDouble() {
			double cur = nextLong();
			return c!='.' ? cur:cur+nextLong()/num;
		}

		public String next() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c>32) {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}

		public String nextLine() {
			StringBuilder res = new StringBuilder();
			while(c<=32)c=nextChar();
			while(c!='\n') {
				res.append(c);
				c=nextChar();
			}
			return res.toString();
		}

		public boolean hasNext() {
			if(c>32)return true;
			while(true) {
				c=nextChar();
				if(c==NC)return false;
				else if(c>32)return true;
			}
		}

		public int[] nextIntArray(int n) {
			int[] res = new int[n];
			for(int i = 0; i < n; i++) res[i] = nextInt();
			return res;
		}

	}


}