#include <bits/stdc++.h>
using namespace std;
typedef struct {
  long long x;
  long long y;
  long long sum;
} co;
bool comp(co a, co b) { return b.sum >= a.sum; }
co a[100005];
int main() {
  long long n, i, k, t;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> (a[i]).x;
    cin >> (a[i]).y;
    (a[i].sum) = abs(a[i].x) + abs(a[i].y);
  }
  sort(a, a + n, comp);
  k = 0;
  for (i = 0; i < n; i++) {
    if (a[i].x > 0) {
      k++;
    } else if (a[i].x < 0) {
      k++;
    }
    if (a[i].y > 0) {
      k++;
    } else if (a[i].y < 0) {
      k++;
    }
    if (a[i].x > 0) {
      k++;
    } else if (a[i].x < 0) {
      k++;
    }
    if (a[i].y > 0) {
      k++;
    } else if (a[i].y < 0) {
      k++;
    }
  }
  cout << k + 2 * n << "\n";
  for (i = 0; i < n; i++) {
    if (a[i].x > 0) {
      cout << "1 " << abs(a[i].x) << " R";
      cout << "\n";
    } else if (a[i].x < 0) {
      cout << "1 " << abs(a[i].x) << " L";
      cout << "\n";
    }
    if (a[i].y > 0) {
      cout << "1 " << abs(a[i].y) << " U";
      cout << "\n";
    } else if (a[i].y < 0) {
      cout << "1 " << abs(a[i].y) << " D";
      cout << "\n";
    }
    cout << 2 << "\n";
    if (a[i].x > 0) {
      cout << "1 " << abs(a[i].x) << " L";
      cout << "\n";
    } else if (a[i].x < 0) {
      cout << "1 " << abs(a[i].x) << " R";
      cout << "\n";
    }
    if (a[i].y > 0) {
      cout << "1 " << abs(a[i].y) << " D";
      cout << "\n";
    } else if (a[i].y < 0) {
      cout << "1 " << abs(a[i].y) << " U";
      cout << "\n";
    }
    cout << "3\n";
  }
}
