#include <bits/stdc++.h>
using namespace std;
int main() {
  set<int> s;
  string str = string(10, '0');
  int y;
  cin >> y;
  string ch;
  cin >> ch;
  for (int i = 0; i < 10; i++) {
    s.insert(i);
  }
  for (int i = 0; i < y; i++) {
    if (ch[i] == 'R') {
      int indx = *(s.rbegin());
      str[indx] = '1';
      s.erase(indx);
    } else if (ch[i] == 'L') {
      int indx = *(s.begin());
      str[indx] = '1';
      s.erase(indx);
    } else {
      int indx = ch[i] - '0';
      str[indx] = '0';
      s.insert(indx);
    }
  }
  cout << str << endl;
}
