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