#include <bits/stdc++.h>
#pragma warning(disable : 4996)
#pragma comment(linker, "/STACK:336777216")
using namespace std;
int n, a[15];
string s;
int main() {
  cin >> n >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'L') {
      for (int j = 0; j < 10; j++) {
        if (!a[j]) {
          a[j] = 1;
          break;
        }
      }
    } else if (s[i] == 'R') {
      for (int j = 9; j >= 0; j--) {
        if (!a[j]) {
          a[j] = 1;
          break;
        }
      }
    } else {
      a[s[i] - '0'] = 0;
    }
  }
  for (int i = 0; i < 10; i++) printf("%d", a[i]);
  printf("\n");
  return 0;
}
