#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int ptr = n;
  int ans = n;
  int compare_value;
  while (ptr > 1) {
    if (2 * (ptr - 1) > n) {
      ptr -= 1;
      continue;
    }
    compare_value = s.compare(0, ptr - 1, s, ptr - 1, ptr - 1);
    if (compare_value == 0) {
      ans -= ptr - 1;
      cout << ans + 1;
      return 0;
    }
    ptr -= 1;
  }
  cout << n << '\n';
  return 0;
}
