#include <bits/stdc++.h>
using namespace std;
const long long MOD = 998244353;
const long long c2 = 1e9 + 9;
const long long md = 1e9 + 7;
mt19937 rnd;
int main() {
  cin.tie(0);
  cout.tie(0);
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  vector<int> q(10);
  for (int i = 0; i < n; ++i) {
    if (s[i] == 'L') {
      int j = 0;
      while (j < 10 && q[j] == 1) j++;
      if (j < 10) q[j] = 1;
    } else if (s[i] == 'R') {
      int j = 9;
      while (j >= 0 && q[j] == 1) j--;
      if (j >= 0) q[j] = 1;
    } else {
      int j = s[i] - '0';
      q[j] = 0;
    }
  }
  for (int i : q) cout << i;
  return 0;
}
