#include <bits/stdc++.h>
using namespace std;
int n;
bool r[15];
int main() {
  cin >> n;
  for (int j = 1; j <= n; j++) {
    char c;
    cin >> c;
    if (c == 'L') {
      for (int i = 0; i <= 9; i++) {
        if (!r[i]) {
          r[i] = true;
          break;
        }
      }
    } else if (c == 'R') {
      for (int i = 9; i >= 0; i--) {
        if (!r[i]) {
          r[i] = true;
          break;
        }
      }
    } else {
      int nmb = c - '0';
      r[nmb] = false;
    }
  }
  for (int i = 0; i <= 9; i++) {
    if (r[i])
      cout << 1;
    else
      cout << 0;
  }
  return 0;
}
