#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios::sync_with_stdio(NULL);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  string s;
  cout << "? 1 " << n << endl;
  if (n == 1) {
    cin >> s;
    cout << "! " << s << endl;
    return 0;
  }
  vector<int> a(n, 0), b(n, 0), suff(n, 0), ans(n, 0);
  for (int i = 0; i < n * (n + 1) / 2; i++) {
    cin >> s;
    for (auto e : s) {
      a[s.size() - 1] += e;
    }
  }
  cout << "? 1 " << n - 1 << endl;
  for (int i = 0; i < (n - 1) * n / 2; i++) {
    cin >> s;
    for (auto e : s) {
      b[s.size() - 1] += e;
    }
  }
  for (int i = 0; i < n; i++) {
    suff[i] = a[i] - b[i];
  }
  ans[n - 1] = suff[0];
  for (int i = 1; i < n; i++) {
    ans[n - i - 1] = suff[i] - suff[i - 1];
  }
  cout << "! ";
  for (auto e : ans) {
    cout << (char)e;
  }
  cout << endl;
  return 0;
}
