#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const int N = 1010;
int g[N][N], p[N], del[N];
int query(int a, int b) {
  cout << "?"
       << " " << a << " " << b << endl;
  int ans;
  cin >> ans;
  return ans;
}
void answer(int r) {
  cout << "!"
       << " " << r << endl;
  return;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(10);
  int n;
  cin >> n;
  for (int i = 0; i < n - 1; i++) {
    int u, v;
    cin >> u >> v;
    g[u][v] = 1;
    p[u]++;
    g[v][u] = 1;
    p[v]++;
  }
  bool ok = false;
  for (int i = 0; i < n; i++) {
    int u = 0, v = 0;
    for (int i = 1; i <= n; i++)
      if (!del[i] && p[i] <= 1) {
        if (u == 0)
          u = i;
        else
          v = i;
      }
    if (!v || !u) break;
    int res = query(u, v);
    if (res == u || res == v) {
      answer(res);
      ok = true;
      break;
    } else {
      del[u] = 1;
      del[v] = 1;
      for (int i = 1; i <= n; i++) {
        if (g[i][u]) p[i]--;
        if (g[i][v]) p[i]--;
      }
    }
  }
  if (!ok) {
    for (int i = 1; i <= n; i++) {
      if (!del[i]) {
        answer(i);
        break;
      }
    }
  }
  return 0;
}
