#include <bits/stdc++.h>
using namespace std;
long long MAX = 1000005;
long long mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  string ans;
  for (int i = 0; i < 10; i++) ans = ans + '0';
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'L') {
      for (int i = 0; i < 10; i++)
        if (ans[i] == '0') {
          ans[i] = '1';
          break;
        }
    } else if (s[i] == 'R') {
      for (int i = 9; i >= 0; i--)
        if (ans[i] == '0') {
          ans[i] = '1';
          break;
        }
    } else {
      int id = int(s[i] - '0');
      ans[id] = '0';
    }
  }
  cout << ans << endl;
}
