#include <bits/stdc++.h>
using namespace std;
using int32 = int_fast32_t;
using int64 = int_fast64_t;
const int32 INF = 1e9;
const int32 MOD = 1e9 + 7;
const int64 LLINF = 1e18;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int32 n;
  cin >> n;
  vector<bool> empty(10, true);
  string s;
  cin >> s;
  for (int64 i = 0; i < (n); ++i) {
    if (s[i] == 'L') {
      for (int64 j = 0; j < (10); ++j) {
        if (empty[j]) {
          empty[j] = false;
          break;
        }
      }
    } else if (s[i] == 'R') {
      for (int64 j = (9); j >= (0); j--) {
        if (empty[j]) {
          empty[j] = false;
          break;
        }
      }
    } else {
      empty[s[i] - '0'] = true;
    }
  }
  for (int64 i = 0; i < (10); ++i) {
    if (empty[i]) {
      cout << 0;
    } else {
      cout << 1;
    }
  }
  return 0;
}
