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.lang.*;
import java.math.*;
import java.util.*;
import java.io.*;

public class Main {
class Node {
    int a;
    int b;
    int c;
    public Node(int a,int b,int c){
        this.a=a;
        this.b=b;
        this.c=c;
    }
    public boolean equals(Object o){
        Node obj=(Node)o;
        return a==obj.a && b==obj.b && c==obj.c;
    }
    public int hashCode(){
        return a+b+c;
    }
}

    void solve() {
       n=ni(); k=ni();
       h=0;
       int kk=1,sm=0;
       while(sm+kk<=n){
           h++;
           sm+=kk;
           kk*=k;
       }
       h--;
      // System.out.println(h);
        l1=leaf1();
     //   System.out.println("Leaf "+l1);
        l2=leaf2();
      //  System.out.println("Leaf "+l2);
        int root=root();
        System.out.println("! "+root);

    }
    int n,k,h,l1,l2;
    HashMap<Node,String> mp=new HashMap<>();
    ArrayList<Integer> vec=new ArrayList<>();
    int root(){
        vec.add(l1);
        vec.add(l2);
        for(int b=1;b<=n;b++){
            if(b==l1 || b==l2) continue;
            if(ask(l1,b,l2)) insert(0,vec.size()-1,b);
        }
        return vec.get(h);
    }

    void insert(int l,int r,int x){
        if(l+1==r){
            vec.add(l+1,x);
            return;
        }
        int mid=(l+r)>>1;
        if(ask(vec.get(l),x,vec.get(mid))) insert(l,mid,x);
        else insert(mid,r,x);
    }
    int leaf1(){
        int b=randInt(1,n);
        while(!checkIfLeaf(b)) b=randInt(1,n);
        return b;
    }
    int leaf2(){
        int cnt=0;
        while(true){
            int b=randInt(1,n);
            if(b==l1) continue;
            if(!checkIfLeaf(b)) continue;
           // System.out.println("Candidate leaf "+b);
            cnt=0;
            for(int c=1;c<=n;c++){
                if(c==l1 || c==b) continue;
                if(ask(l1,c,b)) cnt++;
                if(cnt==2*h-1) return b;
            }
            if(cnt==2*h-1) return b;
        }

    }
    boolean checkIfLeaf(int b){
        int a=randInt(1,n);
        while(a==b) a=randInt(1,n);
        for(int c=1;c<=n;c++){
            if(c==a || c==b) continue;
            if(ask(a,b,c)) return false;
        }
        return true;
    }

    boolean ask(int a,int b,int c){
        if(a==b || b==c) return true;
        if(a==c) return false;
        if(mp.containsKey(new Node(a,b,c))) return mp.get(new Node(a,b,c)).equals("Yes");
         System.out.println("? "+a+" "+b+" "+c);
         System.out.flush();
         String s=ns();
         mp.put(new Node(a,b,c),s);
         mp.put(new Node(c,b,a),s);

         return s.equals("Yes");
    }
    static int randInt(int min,int max){

        return (int)((Math.random() * ((max - min) + 1)) + min);
    }




    long M = (long)1e9+7;
    InputStream is;
    PrintWriter pw;
    String INPUT = "";

    void run() throws Exception {
        is = INPUT.isEmpty() ? System.in : new ByteArrayInputStream(INPUT.getBytes());
        pw = new PrintWriter(System.out);
        long s = System.currentTimeMillis();
        solve();
        pw.flush();
        if (!INPUT.isEmpty()) tr(System.currentTimeMillis() - s + "ms");

    }

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

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

    private 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++];
    }

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

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

    private double nd() {
        return Double.parseDouble(ns());
    }

    private char nc() {
        return (char) skip();
    }

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

    private char[] ns(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);
    }

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

    private int[] na(int n) {
        int[] a = new int[n];
        for (int i = 0; i < n; i++) a[i] = ni();
        return a;
    }

    private int ni() {
        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();
        }
    }

    private long nl() {
        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();
        }
    }

    private boolean oj = System.getProperty("ONLINE_JUDGE") != null;

    private void tr(Object... o) {
        if (INPUT.length() > 0) System.out.println(Arrays.deepToString(o));
    }

}