#include <bits/stdc++.h>
using namespace std;
int dp[105];
string s;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, i, j, k, l, m;
  cin >> s;
  cin >> s;
  n = s.size();
  dp[0] = 1;
  for (i = 1; i < n; i++) {
    if (i % 2 == 1) {
      l = 0;
      for (j = 0; j <= i / 2; j++) {
        if (s[j] != s[j + i / 2 + 1]) {
          l = 1;
        }
      }
      if (l == 0) {
        dp[i] = min(dp[i - 1] + 1, i / 2 + 2);
      } else {
        dp[i] = dp[i - 1] + 1;
      }
    } else {
      dp[i] = dp[i - 1] + 1;
    }
  }
  cout << dp[n - 1] << "\n";
  return 0;
}
