#include <bits/stdc++.h>
using namespace std;
int main() {
  int arr[10], n, q;
  for (int i = 0; i < 10; i++) {
    arr[i] = 0;
  }
  cin >> n;
  char ch;
  for (int i = 0; i < n; i++) {
    q = 100000000 % i;
    cin >> ch;
    if (ch == 'L') {
      for (int j = 0; j < 10; j++) {
        if (arr[j] == 0) {
          arr[j] = 1;
          break;
        }
      }
    } else if (ch == 'R') {
      for (int j = 9; j > -1; j--) {
        if (arr[j] == 0) {
          arr[j] = 1;
          break;
        }
      }
    } else {
      arr[(int)(ch - '0')] = 0;
    }
  }
  for (int i = 0; i < 10; i++) cout << arr[i];
}
