#include <bits/stdc++.h>
using namespace std;
map<string, int> mp;
string str[10010];
char s[111][111];
int cnt[26];
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  cout << '?' << ' ' << 1 << ' ' << n << endl;
  cout.flush();
  int m = n * (n + 1) / 2;
  for (int i = 1; i <= m; i++) {
    cin >> str[i];
    sort(str[i].begin(), str[i].end());
    mp[str[i]]++;
  }
  if (n == 1) {
    cout << '!' << ' ' << str[1] << endl;
    return 0;
  }
  cout << '?' << ' ' << 2 << ' ' << n << endl;
  cout.flush();
  for (int i = 1; i <= n * (n - 1) / 2; i++) {
    string t;
    cin >> t;
    sort(t.begin(), t.end());
    mp[t]--;
  }
  for (int i = 1; i <= m; i++) {
    if (mp[str[i]]) {
      int sz = str[i].size();
      int len = 0;
      for (int j = 0; j < sz; j++) {
        s[sz][j + 1] = str[i][j];
      }
    }
  }
  cout << '!' << ' ' << s[1][1];
  for (int i = 2; i <= n; i++) {
    memset(cnt, 0, sizeof cnt);
    for (int j = 1; j <= i - 1; j++) {
      cnt[s[i - 1][j] - 'a']++;
    }
    for (int j = 1; j <= i; j++) {
      cnt[s[i][j] - 'a']--;
    }
    for (int j = 0; j < 26; j++) {
      if (cnt[j]) {
        cout << (char)('a' + j);
      }
    }
  }
}
