#include <bits/stdc++.h>
int main() {
  int n, i, l, r, room[10] = {0};
  scanf("%d ", &n);
  char c;
  for (i = 0; i < n; i++) {
    scanf("%c", &c);
    for (l = 0; l < 10 && c == 'L'; l++)
      if (room[l] == 0) {
        room[l] = 1;
        break;
      }
    for (r = 9; r >= 0 && c == 'R'; r--)
      if (room[r] == 0) {
        room[r] = 1;
        break;
      }
    if (c > 47 && c < 58) room[c - 48] = 0;
  }
  for (i = 0; i < 10; i++) printf("%d", room[i]);
}
