#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, i, j, k = 0, d = 0, p = 1, u = -1;
  cin >> n;
  string s;
  cin >> s;
  for (i = 0; i < n / 2; i++) {
    m = 0;
    k = 0;
    long long q = i + 1;
    j = p;
    while (q--) {
      if (s[k] == s[j]) m++;
      k++;
      j++;
    }
    p++;
    if (i + 1 == m && m > d) {
      d = m;
      u = i;
    }
  }
  if (u == -1)
    cout << n;
  else {
    cout << n - d + 1;
  }
  return 0;
}
