#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
int main() {
  int n;
  cin >> n;
  int arr[10] = {0};
  char c;
  for (int i = 0; i < n; i++) {
    cin >> c;
    if (c == 'L') {
      for (int j = 0; j < 10; j++)
        if (arr[j] == 0) {
          arr[j] = 1;
          break;
        }
    } else if (c == 'R') {
      for (int j = 9; j >= 0; j--)
        if (arr[j] == 0) {
          arr[j] = 1;
          break;
        }
    } else
      arr[(int)c - 48] = 0;
  }
  for (int i = 0; i < 10; i++) cout << arr[i];
}
