#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int ans = 0;
  for (int i = 0; i <= s.size() / 2; i++) {
    string s1 = s.substr(0, i);
    string s2 = s.substr(i, i);
    if (s1 == s2) {
      ans = s1.size();
    }
  }
  int k = 0;
  if (ans != 0) {
    k = k + ans + 1;
    k = k + s.size() - ans * 2;
    cout << k << endl;
  } else {
    cout << s.size() << endl;
  }
}
