#include <bits/stdc++.h>
int main() {
  unsigned int num;
  std::cin >> num;
  std::vector<bool> status;
  char letter;
  for (unsigned int i = 0; i < 10; i++) {
    status.push_back(false);
  }
  for (unsigned int i = 0; i < num; i++) {
    std::cin >> letter;
    if (letter == 'L') {
      for (unsigned int k = 0; k < 10; k++) {
        if (!status[k]) {
          status[k] = true;
          break;
        }
      }
    } else {
      if (letter == 'R') {
        for (unsigned int k = 9; k >= 0; k--) {
          if (!status[k]) {
            status[k] = true;
            break;
          }
        }
      } else {
        status[letter - '0'] = false;
      }
    }
  }
  for (unsigned int i = 0; i < 10; i++) {
    std::cout << status[i];
  }
  return 0;
}
