#include <bits/stdc++.h>
using namespace std;
bool room[10];
const int n = 10;
string op;
int main() {
  cin >> op;
  cin >> op;
  for (int i = 0; i < op.size(); i++) {
    if (op[i] == 'L') {
      for (int j = 0; j < n; j++)
        if (!room[j]) {
          room[j] = true;
          break;
        }
    } else if (op[i] == 'R') {
      for (int j = n - 1; j >= 0; j--)
        if (!room[j]) {
          room[j] = true;
          break;
        }
    } else {
      room[op[i] - '0'] = false;
    }
  }
  for (int i = 0; i < n; i++) cout << room[i];
  return 0;
}
