#include <bits/stdc++.h>
using namespace std;
const long long int maxn = 1e5;
const long long int inf = 1e9;
const double pi = acos(-1);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  long long int n;
  cin >> n;
  string s, fh, sh;
  cin >> s;
  bool ok = false;
  for (long long int i = 0; i < n; i++) {
    if ((n - i) & 1) {
      fh = s.substr(0, ((n - i - 1) / 2));
      sh = s.substr(((n - i - 1) / 2), ((n - i - 1) / 2));
      long long int x = fh.compare(sh);
      if (x == 0 and fh.length() > 0) {
        ok = true;
        break;
      }
    } else {
      fh = s.substr(0, ((n - i) / 2));
      sh = s.substr(((n - i) / 2), ((n - i) / 2));
      long long int x = fh.compare(sh);
      if (x == 0 and fh.length() > 0) {
        ok = true;
        break;
      }
    }
  }
  if (ok) {
    cout << n - (fh.length()) + 1;
  } else {
    cout << n << endl;
  }
  return 0;
}
