#include <bits/stdc++.h>
using namespace std;
int execute() {
  int l, i, len, j, cnt;
  cin >> l;
  string s, buff1, buff2;
  cin >> s;
  int ans = l, index;
  for (i = 0; i < l; i++) {
    len = 1;
    buff1.clear();
    buff2.clear();
    cnt = 0;
    while (i + len + len <= l) {
      buff1.assign(s.begin() + i, s.begin() + i + len);
      buff2.assign(s.begin() + i + len, s.begin() + i + len + len);
      len++;
      if (buff1 == buff2) cnt = buff1.size(), index = i + len + len;
    }
    if (cnt) ans -= cnt - 1, i = index - 1;
    break;
  }
  cout << ans << endl;
  return 0;
}
char mtest = false;
unsigned short TE = 1;
int main() {
  ios_base::sync_with_stdio(false);
  if (mtest) cin >> TE;
  while (TE--) execute();
  return 0;
}
