#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int arr[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
  string str;
  cin >> str;
  for (int i = 0; i < n; i++) {
    string action;
    action = str[i];
    if (action == "L") {
      for (int j = 0; j <= 9; j++) {
        if (arr[j] == 0) {
          arr[j] = 1;
          break;
        }
      }
    } else if (action == "R") {
      for (int j = 9; j >= 0; j--) {
        if (arr[j] == 0) {
          arr[j] = 1;
          break;
        }
      }
    } else {
      arr[stoi(action)] = 0;
    }
  }
  for (int x : arr) {
    cout << x;
  }
  cout << endl;
  return 0;
}
