#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 0, 1, -1, 1, -1, 1, -1};
int dy[] = {1, -1, 0, 0, -1, 1, 1, -1};
long long gcd(long long a, long long b) { return !b ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return (a / gcd(a, b)) * b; }
void PLAY() {
  cout << fixed << setprecision(10);
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
int main() {
  PLAY();
  int n;
  string s;
  cin >> n >> s;
  int cur = 0;
  for (int i = 1; i < n; i++)
    if (s.substr(0, i) == s.substr(i, i)) cur = i - 1;
  cout << n - cur << endl;
  return 0;
}
