#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
signed main() {
  vector<bool> used(10, false);
  long long int n;
  cin >> n;
  string s;
  cin >> s;
  for (auto c : s) {
    if (c == 'L') {
      for (long long int i = 0; i < 10; i++) {
        if (!used[i]) {
          used[i] = true;
          break;
        }
      }
    } else if (c == 'R') {
      for (long long int i = 9; i >= 0; i--) {
        if (!used[i]) {
          used[i] = true;
          break;
        }
      }
    } else {
      long long int ind = c - '0';
      used[ind] = false;
    }
  }
  for (long long int i = 0; i < 10; i++) cout << used[i];
  return 0;
}
