#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x1 = 0, x2 = 0, c = 0;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'L') {
      x1 = x1 - 1;
    } else if (s[i] == 'R') {
      x2 = x2 + 1;
    }
  }
  for (int i = x1; i <= x2; i++) {
    c = c + 1;
  }
  cout << c;
}
