#include <bits/stdc++.h>
using namespace std;
char s[105];
int fail[105];
int main() {
  int n;
  while (scanf("%d%s", &n, s) != EOF) {
    int res = n;
    char t1[105], t2[105];
    for (int i = n; i > 1; i--) {
      strcpy(t1, s);
      strcpy(t2, s + i);
      t1[i] = t2[i] = 0;
      if (strcmp(t1, t2) == 0) {
        res -= i - 1;
        break;
      }
    }
    printf("%d\n", res);
  }
  return 0;
}
