#include <bits/stdc++.h>
using namespace std;
const long long base = 1e9 + 7;
const double pi = 3.1415926535897932;
const long long oo = 9223372036854775807;
const long inf = 2147483647;
int n;
string s;
int a[10];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  cin >> s;
  for (int i = 0; i <= s.size() - 1; i++)
    if (s[i] == 'L') {
      for (int j = 0; j <= 9; j++)
        if (a[j] == 0) {
          a[j] = 1;
          break;
        }
    } else if (s[i] == 'R') {
      for (int j = 9; j >= 0; j--)
        if (a[j] == 0) {
          a[j] = 1;
          break;
        }
    } else
      a[int(s[i] - '0')] = 0;
  for (int i = 0; i <= 9; i++) cout << a[i];
  return 0;
}
