#include <bits/stdc++.h>
using namespace std;
int A[10]{};
void Imprimir() {
  for (int i = 0; i < 10; i++) printf("%d", A[i]);
}
void UbicarL() {
  for (int i = 0; i < 10; i++)
    if (A[i] == 0) {
      A[i] = 1;
      break;
    }
}
void UbicarR() {
  for (int i = 9; i >= 0; i--)
    if (A[i] == 0) {
      A[i] = 1;
      break;
    }
}
int main() {
  string S;
  cin >> S >> S;
  for (int i = 0; S[i]; i++) {
    if (S[i] == 'L')
      UbicarL();
    else if (S[i] == 'R')
      UbicarR();
    else
      A[S[i] - '0'] = abs(A[S[i] - '0'] - 1);
  }
  Imprimir();
}
