#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  vector<pair<double, pair<long long int, long long int> > > v;
  long long int ans = 0;
  for (long long int i = 0; i < n; i++) {
    long long int cnt = 0;
    long long int x, y;
    scanf("%I64d%I64d", &x, &y);
    if (x != 0) cnt++;
    if (y != 0) cnt++;
    ans += (cnt * 2) + 2;
    double dist = sqrt((x * x) + (y * y));
    v.push_back(make_pair(dist, make_pair(x, y)));
  }
  sort(v.begin(), v.end());
  printf("%I64d\n", ans);
  for (long long int i = 0; i < n; i++) {
    long long int x = v[i].second.first;
    long long int y = v[i].second.second;
    if (x != 0) {
      if (x > 0) {
        printf("1 %I64d R\n", x);
      } else {
        printf("1 %I64d L\n", (-x));
      }
    }
    if (y != 0) {
      if (y > 0) {
        printf("1 %I64d U\n", y);
      } else {
        printf("1 %I64d D\n", (-y));
      }
    }
    printf("2\n");
    if (y != 0) {
      if (y > 0) {
        printf("1 %I64d D\n", y);
      } else {
        printf("1 %I64d U\n", (-y));
      }
    }
    if (x != 0) {
      if (x > 0) {
        printf("1 %I64d L\n", x);
      } else {
        printf("1 %I64d R\n", (-x));
      }
    }
    printf("3\n");
  }
  return 0;
}
