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