#include <bits/stdc++.h>
using namespace std;
void print_arr(int arr[], int length) {
  for (int i = 0; i < length; i++) cout << arr[i];
  cout << '\n';
}
int gcd(int a, int b, int res = 1) {
  if (a == 0) return b;
  if (b == 0) return a;
  if (a == b)
    return a * res;
  else if (a % 2 == 0 && b % 2 == 0)
    return gcd(a / 2, b / 2, res * 2);
  else if (a % 2 == 0)
    return gcd(a / 2, b, res);
  else if (b % 2 == 0)
    return gcd(a, b / 2, res);
  else if (a > b)
    return gcd(a - b, b, res);
  else
    return gcd(a, b - a, res);
}
long long gcdar(long long ar[], long long len) {
  long long result = ar[0];
  for (long long i = 1; i < len; i++) result = gcd(ar[i], result);
  return result;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  string s;
  cin >> n >> s;
  int ar[10] = {};
  for (char x : s) {
    if (x == 'L') {
      int i = 0;
      while (ar[i] == 1) ++i;
      ar[i] = 1;
    } else if (x == 'R') {
      int i = 9;
      while (ar[i] == 1) --i;
      ar[i] = 1;
    } else
      ar[x - '0'] = 0;
  }
  print_arr(ar, 10);
  return 0;
}
