#include <bits/stdc++.h>
static const int Infinity = 1e9;
int main(int argc, const char* argv[]) {
  int n;
  std::cin >> n;
  std::string s;
  std::cin >> s;
  std::string result;
  int count = 0, min = Infinity;
  for (int i = 0; i < n; i++) {
    count++;
    result += s[i];
    std::string temp;
    temp += result;
    temp += result;
    if (temp.length() <= s.length()) {
      std::string t = s.substr(0, 2 * (i + 1));
      if (temp == t) {
        int r = (int)(s.length() - temp.length());
        min = std::min(min, count + 1 + r);
      }
    }
  }
  std::cout << std::min(n, min) << std::endl;
  return 0;
}
