#include <bits/stdc++.h>
using namespace std;
void GO() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
const int INF = 1 * 1e9 + 1;
const long long mod = 1e9 + 7;
void solve() {
  int n;
  cin >> n;
  vector<int> u(10);
  string s;
  cin >> s;
  for (auto &i : s) {
    if (i == 'L') {
      for (int j = 0; j < 10; ++j)
        if (!u[j]) {
          u[j] = 1;
          break;
        }
    } else if (i == 'R') {
      for (int j = 10 - 1; j >= 0; --j)
        if (!u[j]) {
          u[j] = 1;
          break;
        }
    } else
      u[int(i - '0')] = 0;
  }
  for (auto &i : u) cout << i;
}
signed main() {
  GO();
  int Q = 1;
  while (Q--) {
    solve();
  }
  return 0;
}
