#include <bits/stdc++.h>
using namespace std;
const long long INF = (1ll << 62) - 1;
const int M = 1e5 + 5;
int main() {
  ios_base::sync_with_stdio(false);
  int n, ln = 0;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 1; i <= (n / 2); i++) {
    if (s.substr(0, i) == s.substr(i, i)) ln = i;
  }
  cout << min(n, (n - ln + 1)) << endl;
}
