#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int ans1 = 0;
  int ans2 = 0;
  int ans3 = 0;
  int ans4 = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'L') {
      ans2--;
    }
    if (s[i] == 'R') {
      ans3++;
    }
  }
  for (int i = 0; i < n; i++) {
    if (s[i] == 'L') {
      ans4--;
    } else {
      ans4++;
    }
  }
  int mini = min(ans2, 0);
  int maxi = max(ans3, 0);
  cout << (maxi - mini + 1) << endl;
  return 0;
}
