#include <bits/stdc++.h>
using namespace std;
int i, j, m = 0, s = 1, n, z = 0;
string a;
int main() {
  cin >> n >> a;
  for (i = n / 2; i > 0; i--)
    if (a[i] == a[0]) {
      for (j = 1; j < i; j++)
        if (a[i + j] == a[j])
          ++s;
        else
          break;
      if (i == j) {
        m++;
        z += s;
        i = i / 2 + 1;
        cout << n - z + m;
        return 0;
      }
      s = 1;
    }
  cout << n - z + m;
  return 0;
}
