#include <bits/stdc++.h>
using namespace std;
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
const double eps = 1e-8;
const int mod = 1000000007;
const double PI = acos(-1.0);
inline int read() {
  int num;
  scanf("%d", &num);
  return num;
}
const int maxn = 200007;
char str[maxn];
int cnt;
int main() {
  int n = read();
  string s;
  cin >> s;
  string str1, str2;
  for (int i = 1; i <= n / 2; i++) {
    str1 = s.substr(0, i);
    str2 = s.substr(i, i);
    if (str1 == str2) {
      cnt = max(cnt, i);
    }
  }
  if (cnt)
    cout << n - cnt + 1 << endl;
  else
    cout << n << endl;
  return 0;
}
