#include <bits/stdc++.h>
const int maxn = 1000000000 + 7;
using namespace std;
char s[107];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s[i];
  }
  int ans = n;
  bool flag = false;
  int sam = 0;
  int t = 0;
  while (t < n) {
    if (t * 2 > n) break;
    flag = true;
    for (int j = 0; j < t; j++) {
      if (s[j] != s[j + t]) {
        flag = false;
        break;
      }
    }
    if (flag) sam = t;
    t++;
  }
  if (sam > 0) {
    cout << n - sam + 1 << endl;
    return 0;
  }
  cout << n << endl;
  return 0;
}
