#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
const int INF = 0x3f3f3f3f;
const double PI = 3.1415926535;
int a[10];
int main() {
  std::ios::sync_with_stdio(false);
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int(i) = 0; (i) < (int)(s.size()); ++(i)) {
    if (s[i] == 'L') {
      for (int(j) = 0; (j) < (int)(10); ++(j)) {
        if (a[j] == 0) {
          a[j] = 1;
          break;
        }
      }
    } else if (s[i] == 'R') {
      for (int(j) = (int)(9); (j) >= (int)(0); --(j)) {
        if (a[j] == 0) {
          a[j] = 1;
          break;
        }
      }
    } else {
      a[s[i] - '0'] = 0;
    }
  }
  for (int(i) = 0; (i) < (int)(10); ++(i)) cout << a[i];
  cout << endl;
  return 0;
}
