#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, kl = 0, kr = 9;
  cin >> n;
  char* a = new char[n];
  char* rez = new char[10];
  string re;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < 10; i++) rez[i] = '0';
  for (int i = 0; i < n; i++) {
    if (a[i] == 'L') {
      for (int j = 0; j < 10; ++j) {
        if (rez[j] != '1') {
          rez[j] = '1';
          break;
        }
      }
    } else if (a[i] == 'R') {
      for (int j = 9; j >= 0; --j) {
        if (rez[j] != '1') {
          rez[j] = '1';
          break;
        }
      }
    } else {
      if (a[i] == '0') rez[0] = '0';
      if (a[i] == '1') rez[1] = '0';
      if (a[i] == '2') rez[2] = '0';
      if (a[i] == '3') rez[3] = '0';
      if (a[i] == '4') rez[4] = '0';
      if (a[i] == '5') rez[5] = '0';
      if (a[i] == '6') rez[6] = '0';
      if (a[i] == '7') rez[7] = '0';
      if (a[i] == '8') rez[8] = '0';
      if (a[i] == '9') rez[9] = '0';
    }
  }
  for (int i = 0; i < 10; i++) re += rez[i];
  cout << re << endl;
  return 0;
}
