#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  string s;
  string a = "0000000000";
  cin >> n >> s;
  for (long long i = 0; i < n; i++) {
    if (s[i] == 'L') a[a.find('0')] = '1';
    if (s[i] == 'R')
      a[a.rfind('0')] = '1';
    else
      a[s[i] - '0'] = '0';
  }
  cout << a;
}
