#include <bits/stdc++.h>
using namespace std;
const int mxn = 100 * 1000 + 10;
bool occupied[10];
int main() {
  int n;
  string events;
  while (cin >> n) {
    memset(occupied, false, sizeof(occupied));
    cin >> events;
    for (char e : events) {
      if (e == 'L') {
        int l = 0;
        while (occupied[l]) ++l;
        occupied[l] = true;
      } else if (e == 'R') {
        int r = 9;
        while (occupied[r]) --r;
        occupied[r] = true;
      } else {
        occupied[e - '0'] = false;
      }
    }
    for (int i = 0; i < 10; i++) {
      cout << occupied[i];
    }
    cout << endl;
  }
  return 0;
}
