#include <bits/stdc++.h>
using namespace std;
int room[10];
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'R') {
      for (int j = 9; j >= 0; j--) {
        if (room[j] == 0) {
          room[j] = 1;
          break;
        } else {
          continue;
        }
      }
    } else if (s[i] == 'L') {
      for (int j = 0; j < 10; j++) {
        if (room[j] == 0) {
          room[j] = 1;
          break;
        } else {
          continue;
        }
      }
    } else if (s[i] >= '0' && s[i] <= '9') {
      room[s[i] - 48] = 0;
    }
  }
  for (int i = 0; i < 10; i++) {
    cout << room[i];
  }
  cout << "\n";
  memset(room, 0, sizeof(room));
}
