#include <bits/stdc++.h>
using namespace std;
bool debug = true;
template <typename T1, typename T2>
ostream& operator<<(ostream& os, pair<T1, T2> ptt) {
  os << ptt.first << "," << ptt.second;
  return os;
}
template <typename T>
ostream& operator<<(ostream& os, vector<T> vt) {
  os << "{";
  for (int i = 0; i < vt.size(); i++) {
    os << vt[i] << " ";
  }
  os << "}";
  return os;
}
int n;
string s;
int main(int argc, char* argv[]) {
  ios::sync_with_stdio(0);
  cin >> n;
  cin >> s;
  string ans = "0000000000";
  for (int i = 0; i < n; i++) {
    if (s[i] == 'L') {
      for (int j = 0; j < 10; j++) {
        if (ans[j] == '0') {
          ans[j] = '1';
          break;
        }
      }
    }
    if (s[i] == 'R') {
      for (int j = 9; j >= 0; j--) {
        if (ans[j] == '0') {
          ans[j] = '1';
          break;
        }
      }
    }
    if (isdigit(s[i])) {
      ans[s[i] - '0'] = '0';
    }
  }
  cout << ans;
  return 0;
}
