#include <bits/stdc++.h>
using namespace std;
void query(int l, int r) {
  cout << "?"
       << " " << l << " " << r << '\n';
  cout << flush << '\n';
}
string second[101];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int n;
  cin >> n;
  query(1, n);
  if (n == 1) {
    string s;
    cin >> s;
    cout << "! " << s << '\n';
    cout << flush << '\n';
    return 0;
  }
  multiset<string> s1;
  string s;
  int cnt = n * (n + 1) / 2;
  while (cnt--) {
    cin >> s;
    sort(s.begin(), s.end());
    s1.insert(s);
  }
  query(2, n);
  cnt = n * (n - 1) / 2;
  while (cnt--) {
    cin >> s;
    sort(s.begin(), s.end());
    s1.erase(s1.find(s));
  }
  for (auto i : s1) {
    second[i.size()] = i;
  }
  string temp;
  int h[26] = {0};
  for (int i = 1; i < n + 1; i++) {
    s = second[i];
    int hh[26] = {0};
    for (int j = 0; j < s.size(); j++) {
      hh[s[j] - 'a']++;
    }
    for (int j = 0; j < 26; j++) {
      if (hh[j] > h[j]) {
        h[j]++;
        temp += char(j + 'a');
      }
    }
  }
  cout << "! " << temp << '\n';
  cout << flush;
  return 0;
}
