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