#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  while (cin >> n) {
    string s, ans, ans1;
    cin >> s;
    long i, j, jj, cnt = 0, k, ans2 = 1000, pos, cnt1 = 0;
    for (i = 0; i < n; i++) {
      ans += s[i];
      cnt = i + 1;
      ans1 = s.substr(i + 1, i + 1);
      if (ans1 == ans) {
        cnt1 = n - (cnt * 2);
        cnt += 1;
        cnt += cnt1;
      } else
        cnt = n;
      ans2 = min(ans2, cnt);
    }
    cout << ans2 << endl;
  }
}
