#include <bits/stdc++.h>
using namespace std;
int n;
bool vis[11];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    char ch;
    cin >> ch;
    if (ch == 'L')
      for (int i = 0; i <= 9; i++)
        if (!vis[i]) {
          vis[i] = 1;
          break;
        }
    if (ch == 'R')
      for (int i = 9; i >= 0; i--)
        if (!vis[i]) {
          vis[i] = 1;
          break;
        }
    if (ch >= '0' && ch <= '9') vis[ch - '0'] = 0;
  }
  for (int i = 0; i <= 9; i++) printf("%d", vis[i]);
  return 0;
}
