#include <bits/stdc++.h>
using namespace std;
bool compit(pair<int, int> a, pair<int, int> b) {
  int x = abs(a.first) + abs(a.second);
  int y = abs(b.first) + abs(b.second);
  return x < y;
}
int main() {
  int n, i, m, x, y;
  scanf("%d", &n);
  vector<pair<int, int> > xs, zs;
  m = 0;
  for (i = 0; i < n; i++) {
    scanf("%d%d", &x, &y);
    if (x && y) {
      m += 6;
    } else {
      m += 4;
    }
    xs.push_back(make_pair(x, y));
  }
  sort(xs.begin(), xs.end(), compit);
  printf("%d\n", m);
  for (i = 0; i < xs.size(); i++) {
    if (xs[i].first > 0) printf("1 %d R\n", xs[i].first);
    if (xs[i].first < 0) printf("1 %d L\n", -xs[i].first);
    if (xs[i].second > 0) printf("1 %d U\n", xs[i].second);
    if (xs[i].second < 0) printf("1 %d D\n", -xs[i].second);
    printf("2\n");
    if (xs[i].first > 0) printf("1 %d L\n", xs[i].first);
    if (xs[i].first < 0) printf("1 %d R\n", -xs[i].first);
    if (xs[i].second > 0) printf("1 %d D\n", xs[i].second);
    if (xs[i].second < 0) printf("1 %d U\n", -xs[i].second);
    printf("3\n");
  }
  return 0;
}
