#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  string s;
  cin >> s;
  long long cnt = n;
  for (long long i = 0; i < n / 2; i++) {
    if (s.substr(0, i + 1) == s.substr(i + 1, i + 1))
      cnt = min(cnt, i + 1 + 1 + n - (2 * (i + 1)));
  }
  cout << cnt << endl;
}
