#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, i, min = 0, max = 0;
  string arr;
  cin >> n;
  cin >> arr;
  for (i = 0; i < n; i++) {
    if (arr[i] = 'L')
      min = min - 1;
    else
      max = max + 1;
  }
  cout << max - min + 1 << "\n";
  return 0;
}
