#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l = 0, r = 0, s = 0;
  cin >> n;
  char c[n];
  for (int i = 0; i < n; i++) cin >> c[i];
  for (int i = 0; i < n; i++) {
    if (c[i] == 'L')
      l--;
    else
      r++;
  }
  for (int j = l; j <= r; j++) s++;
  cout << s;
  return 0;
}
