#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, loc;
  string str, assignment;
  cin >> n >> str;
  assignment.assign(10, '0');
  for (int i = 0; i < n; i++) {
    if (str.at(i) == 'L') {
      for (int j = 0; j < 10; j++) {
        if (assignment.at(j) != '1') {
          assignment.at(j) = '1';
          break;
        }
      }
    } else if (str.at(i) == 'R') {
      for (int j = 9; j >= 0; j--) {
        if (assignment.at(j) != '1') {
          assignment.at(j) = '1';
          break;
        }
      }
    } else {
      loc = (int)(str.at(i) - '0');
      assignment.at(loc) = '0';
    }
  }
  cout << assignment;
  return 0;
}
