#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, mx = 0;
  string s;
  cin >> n >> s;
  for (int len = 1; len <= n / 2; len++) {
    string x = "";
    for (int i = 0; i < len; i++) x += s[i];
    string y = "";
    for (int i = len; i < 2 * len; i++) y += s[i];
    if (x == y) mx = max(mx, len);
  }
  cout << min(n, mx + 1 + (n - mx * 2)) << endl;
}
