#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  int a[11];
  int n;
  while (cin >> n) {
    for (int i = 0; i <= 9; i++) a[i] = 0;
    cin >> str;
    for (int i = 0; i < n; i++) {
      if (str[i] == 'L') {
        for (int j = 0; j <= 9; j++)
          if (a[j] == 0) {
            a[j] = 1;
            break;
          }
      } else if (str[i] == 'R') {
        for (int j = 9; j >= 0; j--)
          if (a[j] == 0) {
            a[j] = 1;
            break;
          }
      } else {
        a[str[i] - '0'] = 0;
      }
    }
    for (int i = 0; i <= 9; i++) cout << a[i];
    cout << endl;
  }
  return 0;
}
