#include <bits/stdc++.h>
using namespace std;
const int N = 101010;
int n;
char s[105];
int main() {
  scanf("%d", &n);
  scanf("%s", s);
  int maxx = -999;
  for (int i = 0; i <= n / 2; i++) {
    int flag = 0;
    for (int j = 0; j < i; j++) {
      if (s[j] == s[i + j])
        continue;
      else {
        flag = 1;
        break;
      }
    }
    if (flag == 0) maxx = max(maxx, i);
  }
  if (maxx == 0)
    cout << n << endl;
  else
    cout << n - maxx + 1 << endl;
  return 0;
}
