#include <bits/stdc++.h>
using namespace std;
int getCharsFromCopy(string &s, int pivot) {
  if (pivot % 2 == 0) {
    return 0;
  }
  for (int a = 0, b = (pivot + 1) / 2; b <= pivot; a++, b++) {
    if (s[a] != s[b]) {
      return 0;
    }
  }
  return (pivot + 1) / 2;
}
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int charsFromCopy = 0;
  for (int i = 0; i < s.size(); i++) {
    charsFromCopy = max(charsFromCopy, getCharsFromCopy(s, i));
  }
  int res = min<int>(s.size(), s.size() - charsFromCopy + 1);
  cout << res << endl;
  return 0;
}
