#include <bits/stdc++.h>
using namespace std;
const long long INF = 0x3f3f3f3f;
const long long MOD = 1000000007;
inline long long read() {
  char ch = getchar();
  long long x = 0, f = 1;
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch <= '9' && ch >= '0') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
long long i, j, k, l, n, m, sum, maxx, minn, ans, x, y, flag, cc, a[11];
char ch;
int main() {
  cin >> n;
  getchar();
  for (int i = (0); i < (n); i++) {
    scanf("%c", &ch);
    if (ch == 'L') {
      for (int i = 0; i < 10; i++)
        if (a[i] == 0) {
          a[i] = 1;
          break;
        }
    } else if (ch == 'R') {
      for (int i = 9; i >= 0; i--)
        if (a[i] == 0) {
          a[i] = 1;
          break;
        }
    } else
      a[ch - '0'] = 0;
  }
  for (int i = 0; i < 10; i++) cout << a[i];
  cout << endl;
  return 0;
}
