#include <bits/stdc++.h>
using namespace std;
long long ri() {
  bool neg = 0;
  long long X = 0;
  char c;
  while (c = getchar(), (c < '0' || c > '9') && c != '-')
    ;
  if (c == '-')
    neg = 1;
  else
    X = c - 48;
  while (c = getchar(), c >= '0' && c <= '9') X = X * 10 + c - 48;
  if (neg) return (-1) * X;
  return X;
}
void pi(long long X) {
  if (X >= 10)
    pi(X / 10), putchar(X % 10 + '0');
  else
    putchar(X + '0');
}
string str;
bool mirrorTest(int x) {
  for (int i = 0; i <= x; i++) {
    if (str[i] != str[x + 1 + i]) return 0;
  }
  return 1;
}
int main(void) {
  int n;
  cin >> n;
  cin >> str;
  int maxMirror = 0;
  for (int i = 0; i < n / 2; i++) {
    if (mirrorTest(i)) maxMirror = max(maxMirror, i + 1);
  }
  if (maxMirror)
    cout << n - maxMirror + 1 << endl;
  else
    cout << n << endl;
  return 0;
}
