#include <bits/stdc++.h>
using namespace std;
template <typename Tp>
inline void outarr(Tp _begin, Tp _end, const char* _delim = " ") {
  for (Tp current = _begin; current != _end; ++current) {
    std::cout << *current << _delim;
  }
  std::cout << '\n';
}
using ll = long long;
using pii = std::pair<int, int>;
constexpr int INF = 0x3f3f3f3f;
constexpr int MOD = static_cast<const int>(1e9 + 7);
constexpr int MAXN = 200000;
vector<int> gr[MAXN];
bool cand[MAXN];
int depth[MAXN];
int cnt[MAXN];
int prnt[MAXN];
inline int AskDist(int v) {
  cout << "d " << v + 1 << "\n" << flush;
  int res;
  cin >> res;
  assert(res != -1);
  return res;
}
inline int AskNext(int v) {
  cout << "s " << v + 1 << "\n" << flush;
  int res;
  cin >> res;
  assert(res != -1);
  return res - 1;
}
inline void Answer(int v) { cout << "! " << v + 1 << "\n" << flush; }
void Dfs(int h, int from, int p = -1) {
  prnt[from] = p;
  cand[from] = depth[from] == h;
  cnt[from] = cand[from];
  for (int to : gr[from]) {
    if (to != p) {
      depth[to] = depth[from] + 1;
      Dfs(h, to, from);
      cnt[from] += cnt[to];
    }
  }
}
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int n;
  cin >> n;
  for (int i = 0; i < (n - 1); ++i) {
    int a, b;
    cin >> a >> b;
    --a;
    --b;
    gr[a].push_back(b);
    gr[b].push_back(a);
  }
  int dist = AskDist(0);
  Dfs(dist, 0);
  for (int from = 0;;) {
    if (dist == 0) {
      Answer(from);
      break;
    }
    int mid = cnt[from] >> 1;
    for (int v = from, d = 0;;) {
      int u = v;
      for (int to : gr[v]) {
        if (to != prnt[v] && cnt[to] > mid) {
          v = to;
          break;
        }
      }
      if (v == u) {
        if (v == from) {
          from = AskNext(from);
          --dist;
          break;
        }
        int nd = AskDist(v);
        if (nd == dist - d) {
          from = v;
          dist = nd;
          break;
        }
        int ffd = (nd - dist + d) >> 1;
        if (ffd == d) {
          from = AskNext(from);
          --dist;
          break;
        }
        for (int i = 0; i < (ffd); ++i) {
          v = prnt[v];
        }
        from = v;
        dist += ffd - d;
        break;
      }
      ++d;
    }
  }
  return 0;
}
