Problem: This is an interactive problem.

After getting AC after 13 Time Limit Exceeded verdicts on a geometry problem, Kuroni went to an Italian restaurant to celebrate this holy achievement. Unfortunately, the excess sauce disoriented him, and he's now lost!

The United States of America can be modeled as a tree (why though) with n vertices. The tree is rooted at vertex r, wherein lies Kuroni's hotel.

Kuroni has a phone app designed to help him in such emergency cases. To use the app, he has to input two vertices u and v, and it'll return a vertex w, which is the lowest common ancestor of those two vertices.

However, since the phone's battery has been almost drained out from live-streaming Kuroni's celebration party, he could only use the app at most ⌊ n/2 ⌋ times. After that, the phone would die and there will be nothing left to help our dear friend! :(

As the night is cold and dark, Kuroni needs to get back, so that he can reunite with his comfy bed and pillow(s). Can you help him figure out his hotel's location?

Interaction

The interaction starts with reading a single integer n (2 ≤ n ≤ 1000), the number of vertices of the tree.

Then you will read n-1 lines, the i-th of them has two integers x_i and y_i (1 ≤ x_i, y_i ≤ n, x_i ≠ y_i), denoting there is an edge connecting vertices x_i and y_i. It is guaranteed that the edges will form a tree.

Then you can make queries of type "? u v" (1 ≤ u, v ≤ n) to find the lowest common ancestor of vertex u and v.

After the query, read the result w as an integer.

In case your query is invalid or you asked more than ⌊ n/2 ⌋ queries, the program will print -1 and will finish interaction. You will receive a Wrong answer verdict. Make sure to exit immediately to avoid getting other verdicts.

When you find out the vertex r, print "! r" and quit after that. This query does not count towards the ⌊ n/2 ⌋ limit.

Note that the tree is fixed beforehand and will not change during the queries, i.e. the interactor is not adaptive.

After printing any query do not forget to print end of line and flush the output. Otherwise, you might 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 the documentation for other languages.



Hacks

To hack, use the following format:

The first line should contain two integers n and r (2 ≤ n ≤ 1000, 1 ≤ r ≤ n), denoting the number of vertices and the vertex with Kuroni's hotel.

The i-th of the next n-1 lines should contain two integers x_i and y_i (1 ≤ x_i, y_i ≤ n) — denoting there is an edge connecting vertex x_i and y_i.

The edges presented should form a tree.

Example

Input


6
1 4
4 2
5 3
6 3
2 3

3

4

4



Output








? 5 6

? 3 1

? 1 2

! 4

Note

Note that the example interaction contains extra empty lines so that it's easier to read. The real interaction doesn't contain any empty lines and you shouldn't print any extra empty lines as well.

The image below demonstrates the tree in the sample test:

<image>

Solution (in JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.TreeSet;
import java.util.HashSet;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Mufaddal Naya
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        OutputWriter out = new OutputWriter(outputStream);
        DKuroniAndTheCelebration solver = new DKuroniAndTheCelebration();
        solver.solve(1, in, out);
        out.close();
    }

    static class DKuroniAndTheCelebration {
        TreeSet<Integer>[] adj;
        HashSet<Integer> kl;
        int v1;
        int v2;

        public void solve(int testNumber, InputReader c, OutputWriter w) {
            int n = c.readInt();
            adj = new TreeSet[n];
            for (int i = 0; i < n; i++) {
                adj[i] = new TreeSet<>();
            }
            for (int i = 0; i < n - 1; i++) {
                int u = c.readInt() - 1, v = c.readInt() - 1;
                adj[u].add(v);
                adj[v].add(u);
            }
            kl = new HashSet<>();

            int prev = -1;
            for (int j = 0; j < n / 2 + 2; j++) {
                v1 = -1;
                v2 = -1;
                if (findDia()) {
                    w.printLine("?", v1 + 1, v2 + 1);
                    w.flush();
                    int hj = c.readInt() - 1;
                    int kl = find_(hj, -1, v1);
                    int kl1 = find_(hj, -1, v2);
//                w.printLine(kl,kl1);
//                w.flush();
                    del(hj, kl, kl1);
                    prev = hj;
//                w.printLine(Arrays.toString(adj));
//                w.flush();
                } else {
                    w.printLine("!", prev + 1);
                    w.flush();
                    break;
                }
            }
        }

        private void del(int hj, int kl, int kl1) {

            adj[hj].remove(kl);
            adj[hj].remove(kl1);
            for (int kt : adj[kl]) {
                if (kt != hj) {
                    dd(kt, kl);
                }
            }
            adj[kl].clear();
            for (int kt : adj[kl1]) {
                if (kt != hj) {
                    dd(kt, kl1);
                }
            }
            adj[kl1].clear();

        }

        private void dd(int kt, int kl) {

            for (int x : adj[kt]) {
                if (x != kl) {
                    dd(x, kt);
                }
            }
            adj[kt].clear();

        }

        private int find_(int hj, int p, int kk) {
            if (hj == kk) {
                return kk;
            }
            for (int x : adj[hj]) {
                if (x != p) {
                    if (find_(x, hj, kk) != -1) {
                        return x;
                    }
                }
            }
            return -1;
        }

        private boolean findDia() {

            Pair<Integer, Integer> kj = new Pair<>(0, 0);
            for (int i = 0; i < adj.length; i++) {
                if (adj[i].size() != 0) {
                    kj = dfs(i, 0, -1);
                    break;
                }
            }

            Pair<Integer, Integer> pl;
            if (kj.first != 0) {
                pl = dfs(kj.second, 0, -1);
                v1 = kj.second;
                v2 = pl.second;
                return true;
            }
            return false;

        }

        private Pair<Integer, Integer> dfs(int x, int dist, int p) {
            Pair<Integer, Integer> maxP = new Pair<>(dist, x);
            for (int kk : adj[x]) {
                if (kk != p) {
                    Pair<Integer, Integer> pp = dfs(kk, dist + 1, x);
                    if (pp.first > maxP.first) {
                        maxP = pp;
                    }
                }
            }
            return maxP;
        }

    }

    static class Pair<U extends Comparable<U>, V extends Comparable<V>> implements Comparable<Pair<U, V>> {
        public U first;
        public V second;

        public Pair(U first, V second) {
            this.first = first;
            this.second = second;
        }

        public int hashCode() {
            return (first == null ? 0 : first.hashCode() * 31) + (second == null ? 0 : second.hashCode());
        }

        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            Pair<U, V> p = (Pair<U, V>) o;
            return (first == null ? p.first == null : first.equals(p.first)) &&
                    (second == null ? p.second == null : second.equals(p.second));
        }

        public int compareTo(Pair<U, V> b) {
            int cmpU = first.compareTo(b.first);
            return cmpU != 0 ? cmpU : second.compareTo(b.second);
        }

        public String toString() {
            return String.format("Pair = (%s, %s)", first.toString(), second.toString());
        }

    }

    static class InputReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private InputReader.SpaceCharFilter filter;

        public InputReader(InputStream stream) {
            this.stream = stream;
        }

        public int read() {
            if (numChars == -1) {
                throw new InputMismatchException();
            }
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) {
                    return -1;
                }
            }
            return buf[curChar++];
        }

        public int readInt() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                if (c < '0' || c > '9') {
                    throw new InputMismatchException();
                }
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return isWhitespace(c);
        }

        public static boolean isWhitespace(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);

        }

    }

    static class OutputWriter {
        private final PrintWriter writer;

        public OutputWriter(OutputStream outputStream) {
            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
        }

        public OutputWriter(Writer writer) {
            this.writer = new PrintWriter(writer);
        }

        public void print(Object... objects) {
            for (int i = 0; i < objects.length; i++) {
                if (i != 0) {
                    writer.print(' ');
                }
                writer.print(objects[i]);
            }
        }

        public void printLine(Object... objects) {
            print(objects);
            writer.println();
        }

        public void close() {
            writer.close();
        }

        public void flush() {
            writer.flush();
        }

    }
}