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