#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l = 0;
  string s;
  cin >> n >> s;
  for (int i = 0; i < s.length() / 2; i++) {
    string s1, s2;
    s1 = s.substr(0, i + 1);
    s2 = s.substr(i + 1, i + 1);
    if (s1 == s2) l = s1.length();
  }
  if (l > 0)
    cout << n - l + 1 << endl;
  else
    cout << n << endl;
}
