#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int N;
  cin >> N;
  string S;
  cin >> S;
  vector<int> taken(10);
  for (char c : S) {
    if (isdigit(c))
      taken[c - '0'] = 0;
    else if (c == 'L') {
      for (int i = 0; i < 10; i++) {
        if (!taken[i]) {
          taken[i] = 1;
          break;
        }
      }
    } else {
      for (int i = 9; i >= 0; i--) {
        if (!taken[i]) {
          taken[i] = 1;
          break;
        }
      }
    }
  }
  for (int i = 0; i < 10; i++) cout << taken[i];
  cout << endl;
  return 0;
}
