#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
char _;
inline long long powmod(long long x, long long n, long long _mod) {
  long long res = 1;
  while (n) {
    if (n & 1) res = (res * x) % _mod;
    x = (x * x) % _mod;
    n >>= 1;
  }
  return res;
}
int p[200005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int mx = -1;
  for (int i = 0; i < n and (2 * (i + 1) <= n); i++) {
    bool ok = 1;
    for (int j = i + 1; j < 2 * (i + 1); ++j) {
      if (s[j] != s[j - i - 1]) {
        ok = 0;
        break;
      }
    }
    if (ok) {
      mx = max(mx, i + 1);
    }
  }
  int ans = n;
  if (mx > 0) {
    ans = mx + 1 + int((s).size()) - 2 * mx;
  }
  cout << ans << '\n';
  return 0;
}
