#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
const long long mod = 1e9 + 7;
const long double eps = 1e-10;
int n;
string s;
int a[maxn];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  cin >> s;
  int ans = n;
  for (int len = 1; len + len <= n; ++len) {
    bool ok = true;
    for (int i = 0; i < len; ++i) ok &= (s[i] == s[len + i]);
    if (ok) ans = min(ans, len + 1 + (n - len * 2));
  }
  cout << ans << "\n";
}
