#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int cases = 1;
  while (cases--) {
    long long int n;
    cin >> n;
    string s;
    cin >> s;
    long long int l = 0;
    for (long long int i = 1; i <= n / 2; i++) {
      string t1 = s.substr(0, i);
      string t2 = s.substr(i, i);
      if (t1 == t2) l = i;
    }
    if (l > 0) l--;
    cout << n - l << "\n";
  }
  return 0;
}
