#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b);
long long mpower(long long x, long long y, long long c);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  map<long long, long long> M;
  vector<long long> aa;
  set<long long> st;
  set<long long>::iterator itr;
  long long n, i, j, k;
  cin >> n;
  string s;
  cin >> s;
  long long cnt = 0;
  for (i = n - 1; i >= 0; i--) {
    long long flag = -1;
    if (2 * (i + 1) <= n) {
      for (j = i + 1; j < (2 * (i + 1)); j++) {
        if (s[j] == s[j - 1 - i]) {
          flag = 1;
        } else {
          flag = -1;
          break;
        }
      }
    }
    if (flag == 1) {
      i = -1;
    }
    cnt++;
  }
  cout << cnt;
  return 0;
}
long long gcd(long long a, long long b) {
  if (b == 0) {
    return a;
  } else {
    return gcd(b, a % b);
  }
}
long long mpower(long long x, long long y, long long c) {
  long long res = 1;
  while (y > 0) {
    if (y & 1) res = (res * x) % c;
    y = y >> 1;
    x = (x * x) % c;
  }
  return res;
}
