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