#include <bits/stdc++.h>
using namespace std;
long long x[11];
int main() {
  long long n;
  string str;
  cin >> n;
  cin >> str;
  for (int i = 0; i < n; i++) {
    if (str[i] == 'L') {
      for (int l = 0; l <= 9; l++) {
        if (x[l] == 0) {
          x[l] = 1;
          break;
        }
      }
    }
    if (str[i] == 'R') {
      for (int r = 9; r >= 0; r--) {
        if (x[r] == 0) {
          x[r] = 1;
          break;
        }
      }
    }
    if (str[i] == '0') {
      x[0] = 0;
    }
    if (str[i] == '1') {
      x[1] = 0;
    }
    if (str[i] == '2') {
      x[2] = 0;
    }
    if (str[i] == '3') {
      x[3] = 0;
    }
    if (str[i] == '4') {
      x[4] = 0;
    }
    if (str[i] == '5') {
      x[5] = 0;
    }
    if (str[i] == '6') {
      x[6] = 0;
    }
    if (str[i] == '7') {
      x[7] = 0;
    }
    if (str[i] == '8') {
      x[8] = 0;
    }
    if (str[i] == '9') {
      x[9] = 0;
    }
  }
  for (int i = 0; i < 10; i++) {
    cout << x[i];
  }
  return 0;
}
