#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string x, s1, s2;
  cin >> x;
  if (n == 1) {
    cout << 1;
    exit(0);
  }
  int i = 0, j = n / 2;
  while (true) {
    s1 = x.substr(0, j);
    s2 = x.substr(j, j);
    if (s1 == s2) {
      cout << j + 1 + (n - (j * 2));
      exit(0);
    } else if (j == 1) {
      cout << n;
      exit(0);
    }
    j--;
  }
}
