#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string s;
  cin >> n >> s;
  int len;
  bool flag = false;
  for (int i = n / 2; i >= 1; i--) {
    bool tmp = true;
    for (int j = 0; j < i; j++) {
      if (s[j] != s[i + j]) tmp = false;
    }
    if (tmp) {
      len = i;
      flag = true;
      break;
    }
  }
  if (flag)
    cout << n + 1 - len << endl;
  else
    cout << n << endl;
}
