#include <bits/stdc++.h>
#pragma warning(disable : 4996)
FILE *in = stdin, *out = stdout;
using namespace std;
#pragma comment(linker, "/stack:36777216")
int n;
char a[300005];
int D[300005];
void input() {
  fscanf(in, "%d", &n);
  fscanf(in, "%s", &a[1]);
}
bool isSame(int x) {
  if (x & 1) return false;
  for (int i = (1); i <= (x / 2); i++) {
    if (a[i] != a[i + x / 2]) return false;
  }
  return true;
}
void pro() {
  int ans = n;
  for (int i = (1); i <= (n); i++) {
    if (isSame(i)) ans = min(ans, i / 2 + 1 + (n - i));
  }
  fprintf(out, "%d", ans);
}
int main() {
  input();
  pro();
  return 0;
}
