#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x;
  cin >> n;
  x = n;
  string s;
  cin >> s;
  for (int i = n / 2; i > 0; i--) {
    if (s.substr(i, i).compare(s.substr(0, i)) == 0) {
      x -= i - 1;
      break;
    }
  }
  cout << x;
  return 0;
}
