#include <bits/stdc++.h>
using namespace std;
inline char gc() {
  static const long long L = 233333;
  static char sxd[L], *sss = sxd, *ttt = sxd;
  if (sss == ttt) {
    ttt = (sss = sxd) + fread(sxd, 1, L, stdin);
    if (sss == ttt) {
      return EOF;
    }
  }
  return *sss++;
}
inline char readalpha() {
  char c = getchar();
  for (; !isalpha(c); c = getchar())
    ;
  return c;
}
inline char readchar() {
  char c = getchar();
  for (; c == ' '; c = getchar())
    ;
  return c;
}
template <class T>
inline bool read(T& x) {
  bool flg = false;
  char c = getchar();
  x = 0;
  for (; !isdigit(c); c = getchar()) {
    if (c == '-') {
      flg = true;
    } else if (c == EOF) {
      return false;
    }
  }
  for (; isdigit(c); c = getchar()) {
    x = (x << 1) + (x << 3) + (c ^ 48);
  }
  if (flg) {
    x = -x;
  }
  return true;
}
template <class T>
inline void write(T x) {
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  if (x < 10) {
    putchar(x | 48);
    return;
  }
  write(x / 10);
  putchar((x % 10) | 48);
}
int dd[222];
int main() {
  int n;
  string ss;
  cin >> n >> ss;
  for (unsigned i = 0; i < ss.length(); ++i) {
    char x = ss[i];
    if (isdigit(x)) {
      dd[x ^ 48] = 0;
    } else if (x == 'L') {
      for (int j = 0; j < 10; ++j) {
        if (!dd[j]) {
          dd[j] = 1;
          break;
        }
      }
    } else if (x == 'R') {
      for (int j = 9; ~j; --j) {
        if (!dd[j]) {
          dd[j] = 1;
          break;
        }
      }
    }
  }
  for (unsigned i = 0; i < 10; ++i) {
    printf("%d", dd[i]);
  }
  return 0;
}
