#include <bits/stdc++.h>
using namespace std;
const int M = 1e4 + 10;
int main() {
  string s;
  int n;
  cin >> n;
  int len = n / 2;
  int res = 0;
  cin >> s;
  char a[60], b[60];
  memset(a, 0, sizeof(a));
  memset(b, 0, sizeof(b));
  for (int l = 1; l <= len; ++l) {
    for (int j = 0; j < l; ++j) {
      a[j] = s[j];
      b[j] = s[j + l];
    }
    int f = strcmp(a, b);
    if (f == 0) {
      res = l;
    }
  }
  if (res) --res;
  cout << n - res << endl;
  return 0;
}
