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.util.*;

public class Main {
	static HashMap<Long, Boolean> map = new HashMap<>();
    static long getHash(long a, long b, long c) {
        return (long)(n + 1) * (long)(n + 1) * a + (long)(n + 1) * b + c;
    }
    static boolean check(int a, int b, int c) {
        long hashV = getHash(a, b, c);

        if(map.get(hashV) != null)
            return map.get(hashV);

        // b in path a -> c
        System.out.println("? " + a + " " + b + " " + c);
        System.out.flush();
        String s = sc.next();

        map.put(hashV, s.equals("Yes"));

        return map.get(hashV);
    }
    static int findHeight(int x) {
        int nodes = 0;

        int anotherNode = rand.nextInt(n) + 1;
        while(anotherNode == x)
            anotherNode = rand.nextInt(n) + 1;

        for(int i = 1; i <= n; ++i) {
            if(check(anotherNode, x, i))
                nodes++;
        }

        if(level.get(nodes) == null) 
            return level.get(n - nodes) + 1;
        else
            return level.get(nodes);
    }
    static int findDist(int a, int b) {
        int ans = 0;
        for(int i = 1; i <= n; ++i) {
            if(check(a, i, b))
                ans++;
        }
        return ans;
    }
    static void printAns(int ans) {
        System.out.println("! " + ans);
        System.out.flush();
    }
    static int findLCA(int a, int b) {
        ArrayList<Integer> list = new ArrayList<>();
        for(int i = 1; i <= n; ++i) {
            if(i == a || i == b)
                continue;

            if(check(a, i, b))
                list.add(i);
        }

        ArrayList<Integer> path = new ArrayList<>();
        path.add(a);

        int vis[] = new int[list.size()];
        for(int i = 0; i < list.size(); ++i) {
            int selectedInd = -1;
            for(int j = 0; j < list.size(); ++j) {
                if(vis[j] == 0) {
                    if(selectedInd == -1)
                        selectedInd = j;
                    else if(check(a, list.get(j), list.get(selectedInd)))
                        selectedInd = j;
                }
            }
            path.add(list.get(selectedInd));
            vis[selectedInd] = 1;
        }

        int rootInd = height - height1;

        return path.get(rootInd);
    }
    static int n, k;
    static HashMap<Integer, Integer> level;
    static int height, height1;
    static Random rand;
    static Scanner sc;
    public static void main(String args[]) {
        sc = new Scanner(System.in);
        rand = new Random();

        n = sc.nextInt();
        k = sc.nextInt();

        if(n == 1) {
            printAns(1);
            return;
        }

        height = 0;
        int remNodes = n * k - n + 1;
        while(remNodes != 1) {
            height++;
            remNodes /= k;
        }

        int nodes[] = new int[height + 1];
        nodes[1] = 1;
        level = new HashMap<>();
        level.put(1, 1);
        for(int i = 2; i <= height; ++i) {
            nodes[i] = k * nodes[i - 1] + 1;
            level.put(nodes[i], i);
        }

        int node1 = rand.nextInt(n) + 1;
        height1 = findHeight(node1);

        if(height1 == height) {
            printAns(node1);
            return;
        }

        HashSet<Integer> alrSet = new HashSet<>();
        alrSet.add(node1);

        int node2 = -1;

        while(true) {
            node2 = rand.nextInt(n) + 1;
            while(alrSet.contains(node2)) 
                node2 = rand.nextInt(n) + 1;

            alrSet.add(node2);
            
            int height2 = findHeight(node2);

            if(height2 == height) {
                printAns(node2);
                return;
            }

            int dist = findDist(node1, node2);

            if(height1 + height2 + dist - 2 == 2 * height - 1) 
                break;
        }

        int fans = findLCA(node1, node2);
        printAns(fans);
    }
}