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