Problem: This problem is different with easy version only by constraints on total answers length

It is an interactive problem

Venya joined a tour to the madhouse, in which orderlies play with patients the following game. Orderlies pick a string s of length n, consisting only of lowercase English letters. The player can ask two types of queries: 

  * ? l r – ask to list all substrings of s[l..r]. Substrings will be returned in random order, and in every substring, all characters will be randomly shuffled. 
  * ! s – guess the string picked by the orderlies. This query can be asked exactly once, after that the game will finish. If the string is guessed correctly, the player wins, otherwise he loses. 



The player can ask no more than 3 queries of the first type.

To make it easier for the orderlies, there is an additional limitation: the total number of returned substrings in all queries of the first type must not exceed \left⌈ 0.777(n+1)^2 \right⌉ (⌈ x ⌉ is x rounded up).

Venya asked you to write a program, which will guess the string by interacting with the orderlies' program and acting by the game's rules.

Your program should immediately terminate after guessing the string using a query of the second type. In case your program guessed the string incorrectly, or it violated the game rules, it will receive verdict Wrong answer.

Note that in every test case the string is fixed beforehand and will not change during the game, which means that the interactor is not adaptive.

Input

First line contains number n (1 ≤ n ≤ 100) — the length of the picked string.

Interaction

You start the interaction by reading the number n.

To ask a query about a substring from l to r inclusively (1 ≤ l ≤ r ≤ n), you should output

? l r

on a separate line. After this, all substrings of s[l..r] will be returned in random order, each substring exactly once. In every returned substring all characters will be randomly shuffled.

In the case, if you ask an incorrect query, ask more than 3 queries of the first type or there will be more than \left⌈ 0.777(n+1)^2 \right⌉ substrings returned in total, you will receive verdict Wrong answer.

To guess the string s, you should output

! s

on a separate line.

After printing each query, do not forget to flush the output. Otherwise, you will get Idleness limit exceeded. To flush the output, you can use: 

  * fflush(stdout) or cout.flush() in C++; 
  * System.out.flush() in Java; 
  * flush(output) in Pascal; 
  * stdout.flush() in Python; 
  * see documentation for other languages. 



If you received - (dash) as an answer to any query, you need to terminate your program with exit code 0 (for example, by calling exit(0)). This means that there was an error in the interaction protocol. If you don't terminate with exit code 0, you can receive any unsuccessful verdict. 

Hack format

To hack a solution, use the following format:

The first line should contain one integer n (1 ≤ n ≤ 100) — the length of the string, and the following line should contain the string s.

Example

Input


4

a
aa
a

cb
b
c

c

Output


? 1 2

? 3 4

? 4 4

! aabc

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
struct MI {
 private:
  char bb[1 << 14];
  FILE *f;
  char *bs, *be;
  char e;
  bool o, l;

 public:
  MI() : f(stdin), bs(0), be(0) {}
  MI(FILE *f) : f(f), bs(0), be(0) {}
  inline operator bool() { return !l; }
  inline char get() {
    if (o) {
      o = 0;
      return e;
    }
    if (bs == be) be = (bs = bb) + fread(bb, 1, sizeof(bb), f);
    if (bs == be) {
      l = 1;
      return -1;
    };
    return *bs++;
  }
  inline void unget(char c) {
    o = 1;
    e = c;
  }
  template <class T>
  inline T read() {
    T r;
    *this > r;
    return r;
  }
  template <class T>
  inline MI &operator>(T &);
};
template <class T>
struct Q {
  const static bool U = T(-1) >= T(0);
  inline void operator()(MI &t, T &r) const {
    r = 0;
    char c;
    bool y = 0;
    if (U)
      for (;;) {
        c = t.get();
        if (c == -1) goto E;
        if (isdigit(c)) break;
      }
    else
      for (;;) {
        c = t.get();
        if (c == -1) goto E;
        if (c == '-') {
          c = t.get();
          if (isdigit(c)) {
            y = 1;
            break;
          };
        } else if (isdigit(c))
          break;
        ;
      };
    for (;;) {
      if (c == -1) goto E;
      if (isdigit(c))
        r = r * 10 + (c ^ 48);
      else
        break;
      c = t.get();
    }
    t.unget(c);
  E:;
    if (y) r = -r;
  }
};
template <>
struct Q<char> {
  inline void operator()(MI &t, char &r) {
    int c;
    for (;;) {
      c = t.get();
      if (c == -1) {
        r = -1;
        return;
      };
      if (!isspace(c)) {
        r = c;
        return;
      };
    }
  }
};
template <class T>
inline MI &MI::operator>(T &t) {
  Q<T>()(*this, t);
  return *this;
}
template <class T>
std::ostream &operator<(std::ostream &out, const T &t) {
  return out << t;
}
using std::cin;
using std::cout;
const int $n = 105;
int n, f[$n][26], sum[26];
char s[$n];
inline const std::string &read() {
  static std::string r;
  cin >> r;
  std::sort(r.begin(), r.end());
  return r;
}
inline void calc(int n) {
  static std::unordered_map<std::string, int> w;
  static int cnt[$n][26], sum[26];
  if (n == 1) {
    cout < "? 1 " < 1 < ('\n');
    cout.flush();
    s[1] = read()[0];
    return;
  }
  cout < "? 2 " < n < ('\n');
  cout.flush();
  for (int __r = (n * (n - 1) / 2), _ = (1); _ <= __r; ++_) ++w[read()];
  cout < "? 1 " < n < ('\n');
  cout.flush();
  for (int __r = (n * (n + 1) / 2), _ = (1); _ <= __r; ++_) {
    const auto s = read();
    auto it = w.find(s);
    if (it != w.end()) {
      if (!--it->second) w.erase(it);
    } else {
      int *t = cnt[s.size()];
      for (char c : s) ++t[c - 'a'];
    }
  }
  std::string fin;
  for (int __r = (n), i = (1); i <= __r; ++i) {
    int w = -1;
    for (int __r = ((26) - 1), j = (0); j <= __r; ++j) {
      cnt[i][j] -= sum[j];
      if (cnt[i][j] == 1) {
        assert(w == -1);
        w = j;
      } else
        assert(!cnt[i][j]);
    }
    s[i] = w + 'a';
    assert(w != -1);
    ++sum[w];
  }
}
int main() {
  cin >> n;
  cin.get();
  if (n == 1) {
    cout < "? 1 1\n";
    cout.flush();
    cout < "! " < read() < ('\n');
    return 0;
  }
  const auto h = n / 2;
  calc(h);
  cout < "? 1 " < n < ('\n');
  cout.flush();
  for (int __r = (n * (n + 1) / 2), i = (1); i <= __r; ++i) {
    const auto &s = read();
    for (char c : s) ++f[s.size()][c - 'a'];
  }
  for (int i = (n + 1) / 2 - 1; i; --i) {
    memset(sum, 0, sizeof(sum));
    for (int __r = ((n - i) - 1), j = (i + 1); j <= __r; ++j) ++sum[s[j] - 'a'];
    int w = -1;
    for (int __r = ((26) - 1), c = (0); c <= __r; ++c)
      if (f[i + 1][c] - f[i][c] != sum[c]) {
        assert(w == -1);
        w = c;
      }
    s[n - i] = w + 'a';
  }
  for (int __r = ((n)-1), i = (1); i <= __r; ++i) --f[n][s[i] - 'a'];
  cout < "! " < (s + 1);
  for (int __r = ((26) - 1), c = (0); c <= __r; ++c)
    if (f[n][c]) cout < (char)(c + 'a') < ('\n');
}