#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int mid = n / 2;
  string temp = "";
  int maxLen = 0;
  for (int i = 0; i < mid; i++) {
    int j = i + 1;
    int k = 0;
    int len = 0;
    temp += s[i];
    while (k <= i && temp[k] == s[j]) {
      k++;
      j++;
      len++;
    }
    if (k == i + 1) {
      if (len > 0) {
        maxLen = max(maxLen, len);
      }
    }
  }
  if (maxLen == 0) {
    cout << n << "\n";
  } else {
    cout << n - maxLen + 1 << "\n";
  }
}
