#include <bits/stdc++.h>
using namespace std;
int cnt[101][26];
int main() {
  int n;
  cin >> n;
  cout << "? 1 " << n << endl;
  for (int x = 1; x <= (1 + n) * n / 2; x++) {
    string s;
    cin >> s;
    for (auto c : s) cnt[s.length()][c - 'a']++;
  }
  if (n > 1) {
    cout << "? 2 " << n << endl;
    for (int x = 1; x <= (n - 1) * n / 2; x++) {
      string s;
      cin >> s;
      for (auto c : s) cnt[s.length()][c - 'a']--;
    }
  }
  string ans = "";
  for (int x = 1; x <= n; x++) {
    int now = 0;
    for (; now < 26; now++)
      if (cnt[x][now]) {
        ans += 'a' + now;
        break;
      }
    for (int y = x + 1; y <= n; y++) cnt[y][now]--;
  }
  cout << "! " << ans << endl;
}
