#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 0;
  string ch;
  string st1, st2;
  cin >> n >> ch;
  int m = 1;
  st1 = ch.substr(0, n / 2);
  st2 = ch.substr(n / 2, n / 2);
  for (int i = 0; i < n / 2; i++) {
    if (st1 == st2) {
      count++;
      count += st1.size();
      count += ch.size() - (st1.size() * 2);
      break;
    } else {
      st1 = st1.substr(0, st1.size() - 1);
      st2 = ch.substr((n / 2) - m, st2.size() - 1);
      m++;
    }
  }
  if (count == 0) count = n;
  cout << count;
  return 0;
}
