#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans;
  char a[105], b[105], c[105];
  while (~scanf("%d", &n)) {
    memset(a, '\0', sizeof(a));
    getchar();
    for (int i = 0; i < n; i++) scanf("%c", &a[i]);
    ans = n;
    for (int i = n / 2 - 1; i >= 1; i--) {
      memset(b, '\0', sizeof(b));
      memset(c, '\0', sizeof(c));
      for (int j = 0; j <= i; j++) c[j] = b[j] = a[j];
      strcat(b, c);
      int flag = 0;
      for (int j = 0; j < strlen(b); j++) {
        if (b[j] != a[j]) {
          flag = 1;
          break;
        }
      }
      if (flag == 0) {
        ans -= i;
        break;
      }
    }
    cout << ans << endl;
  }
  return 0;
}
