#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  getchar();
  char arr[n + 5];
  scanf("%s", arr);
  int x = strlen(arr);
  int min = 0;
  int max = 0;
  int pos = 0;
  for (int i = 0; i < x; i++) {
    if (arr[i] == 'L') {
      pos -= 1;
      min--;
    }
    if (arr[i] == 'R') {
      pos += 1;
      max++;
    }
  }
  int hasil = 0;
  if (min < 0) {
    min = -min + 1;
    hasil = max + min;
  } else {
    hasil = max - min + 1;
  }
  printf("%d\n", hasil);
  return 0;
}
