#include <bits/stdc++.h>
using namespace std;
int n;
string s;
bool check(int x) {
  int i = 0, j = x;
  while (i < x) {
    if (s[i] != s[j]) return false;
    i++;
    j++;
  }
  return true;
}
int main() {
  cin >> n >> s;
  int ans = n;
  for (int i = 1; i <= n / 2; i++) {
    if (check(i)) {
      ans = min(ans, n - i + 1);
    }
  }
  cout << ans;
  return 0;
}
