#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int hotel[10] = {0};
  for (auto e : s) {
    if (e == 'L') {
      for (int i = 0; i < 10; i++) {
        if (hotel[i] == 0) {
          hotel[i] = 1;
          break;
        }
      }
    } else if (e == 'R') {
      for (int i = 9; i >= 0; i--) {
        if (hotel[i] == 0) {
          hotel[i] = 1;
          break;
        }
      }
    } else {
      hotel[e - '0'] = 0;
    }
  }
  for (auto e : hotel) cout << e;
  return 0;
}
