#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > a, b, c, d;
int main() {
  int k, q, r, sol = 0;
  scanf("%d", &k);
  for (int(i) = (0); (i) < (k); (++i)) {
    scanf("%d", &q);
    scanf("%d", &r);
    if (q != 0) sol += 2;
    if (r != 0) sol += 2;
    if (q >= 0 && r >= 0) {
      a.push_back(make_pair(q, r));
      continue;
    }
    if (q >= 0 && r <= 0) {
      b.push_back(make_pair(q, -r));
      continue;
    }
    if (q <= 0 && r <= 0) {
      c.push_back(make_pair(-q, -r));
      continue;
    }
    if (q <= 0 && r >= 0) {
      d.push_back(make_pair(-q, r));
      continue;
    }
  }
  sol += k * 2;
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  sort(c.begin(), c.end());
  sort(d.begin(), d.end());
  printf("%d\n", sol);
  for (int(i) = (0); (i) < (a.size()); (++i)) {
    q = abs(a[i].first);
    r = abs(a[i].second);
    if (q > 0) {
      printf("1 %d ", q);
      if (a[i].first > 0)
        printf("R\n");
      else
        printf("L\n");
    }
    if (r > 0) {
      printf("1 %d ", r);
      if (a[i].second > 0)
        printf("U\n");
      else
        printf("D\n");
    }
    printf("2\n");
    if (r > 0) {
      printf("1 %d ", r);
      if (a[i].second > 0)
        printf("D\n");
      else
        printf("U\n");
    }
    if (q > 0) {
      printf("1 %d ", q);
      if (a[i].first > 0)
        printf("L\n");
      else
        printf("R\n");
    }
    printf("3\n");
  }
  for (int(i) = (0); (i) < (b.size()); (++i)) {
    q = abs(b[i].first);
    r = abs(b[i].second);
    if (q > 0) {
      printf("1 %d ", q);
      if (b[i].first > 0)
        printf("R\n");
      else
        printf("L\n");
    }
    if (r > 0) {
      printf("1 %d ", r);
      if (-b[i].second > 0)
        printf("U\n");
      else
        printf("D\n");
    }
    printf("2\n");
    if (r > 0) {
      printf("1 %d ", r);
      if (-b[i].second > 0)
        printf("D\n");
      else
        printf("U\n");
    }
    if (q > 0) {
      printf("1 %d ", q);
      if (b[i].first > 0)
        printf("L\n");
      else
        printf("R\n");
    }
    printf("3\n");
  }
  for (int(i) = (0); (i) < (c.size()); (++i)) {
    q = abs(c[i].first);
    r = abs(c[i].second);
    if (q > 0) {
      printf("1 %d ", q);
      if (-c[i].first > 0)
        printf("R\n");
      else
        printf("L\n");
    }
    if (r > 0) {
      printf("1 %d ", r);
      if (-c[i].second > 0)
        printf("U\n");
      else
        printf("D\n");
    }
    printf("2\n");
    if (r > 0) {
      printf("1 %d ", r);
      if (-c[i].second > 0)
        printf("D\n");
      else
        printf("U\n");
    }
    if (q > 0) {
      printf("1 %d ", q);
      if (-c[i].first > 0)
        printf("L\n");
      else
        printf("R\n");
    }
    printf("3\n");
  }
  for (int(i) = (0); (i) < (d.size()); (++i)) {
    q = abs(d[i].first);
    r = abs(d[i].second);
    if (q > 0) {
      printf("1 %d ", q);
      if (-d[i].first > 0)
        printf("R\n");
      else
        printf("L\n");
    }
    if (r > 0) {
      printf("1 %d ", r);
      if (d[i].second > 0)
        printf("U\n");
      else
        printf("D\n");
    }
    printf("2\n");
    if (r > 0) {
      printf("1 %d ", r);
      if (d[i].second > 0)
        printf("D\n");
      else
        printf("U\n");
    }
    if (q > 0) {
      printf("1 %d ", q);
      if (-d[i].first > 0)
        printf("L\n");
      else
        printf("R\n");
    }
    printf("3\n");
  }
  return 0;
}
