#include <bits/stdc++.h>
using namespace std;
int read(int &x) {
  int dat = 0, oko = 1;
  char chc = getchar();
  while (chc < '0' || chc > '9') {
    if (chc == '-') oko = -1;
    chc = getchar();
  }
  while (chc >= '0' && chc <= '9') {
    dat = dat * 10 + chc - '0';
    chc = getchar();
  }
  x = dat * oko;
  return x;
}
int n;
bool k[10];
char c[100005];
int main() {
  read(n);
  scanf("%s", c + 1);
  for (int i = 1; i <= n; i++) {
    if (c[i] == 'L')
      for (int j = 0; j <= 9; j++)
        if (!k[j]) {
          k[j] = true;
          goto end;
        }
    if (c[i] == 'R')
      for (int j = 9; j >= 0; j--)
        if (!k[j]) {
          k[j] = true;
          goto end;
        }
    k[c[i] - '0'] = false;
  end:;
  }
  for (int i = 0; i <= 9; i++) printf("%d", k[i]);
  return 0;
}
