#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int N = 1e6 + 5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int k = 0;
  for (int i = 1; i <= n / 2; ++i) {
    string a = s.substr(0, i);
    string b = s.substr(i, i);
    if (a == b) k = i;
  }
  if (k == 0)
    cout << n;
  else
    cout << n - k + 1;
  return 0;
}
