#include <bits/stdc++.h>
using namespace std;
int n;
char a[105];
int ans;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  ans = n;
  for (int i = 1; i * 2 <= n; i++) {
    bool flag = 1;
    for (int j = 1; j <= i; j++) {
      if (a[j] != a[j + i]) {
        flag = 0;
        break;
      }
    }
    if (flag) {
      int ans1 = i + 1 + (n - i * 2);
      ans = min(ans, ans1);
    }
  }
  cout << ans;
  return 0;
}
