#include <bits/stdc++.h>
using namespace std;
int n, ans;
string s;
int main() {
  scanf("%d", &n);
  cin >> s;
  ans = n;
  for (int i = 1; i < n; i++) {
    int aux = i, v = 1;
    for (int j = 0; j < i; j++) {
      if (aux >= n || s[aux] != s[j]) v = 0;
      aux++;
    }
    if (v) ans = min(ans, n - i + 1);
  }
  printf("%d\n", ans);
  return 0;
}
