#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 1;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 1; i < n - 1; ++i) {
    int j;
    for (j = 0; j < i; ++j) {
      if (j + i < n && s[j] == s[j + i])
        continue;
      else
        break;
    }
    if (j == i) ans = max(ans, i);
  }
  cout << n - ans + 1 << "\n";
  return 0;
}
