#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  string s;
  cin >> s;
  long long int maxlen = 1;
  for (int i = 1; i < n; ++i) {
    if (s[0] == s[i]) {
      long long int a = 0, b = i;
      while (a < i && b < n && s[a] == s[b]) {
        a++;
        b++;
      }
      if (a == i) maxlen = max(maxlen, (long long int)i);
    }
  }
  cout << n - maxlen + 1 << "\n";
  return 0;
}
