#include <bits/stdc++.h>
using namespace std;
string hotel = "0000000000";
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (auto x : s) {
    if (x == 'L') {
      for (int i = 0; i < 10; i++)
        if (hotel[i] == '0') {
          hotel[i] = '1';
          break;
        }
    } else if (x == 'R') {
      for (int i = 9; i >= 0; i--)
        if (hotel[i] == '0') {
          hotel[i] = '1';
          break;
        }
    } else
      hotel[x - '0'] = '0';
  }
  cout << hotel;
}
