#include <bits/stdc++.h>
using namespace std;
bool comp(const pair<long long int, long long int> &a,
          const pair<long long int, long long int> &b) {
  return abs(a.first) + abs(a.second) < abs(b.first) + abs(b.second);
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int n;
  cin >> n;
  vector<pair<long long int, long long int> > v;
  long long int i, j, k;
  for (i = 0; i <= n - 1; i++) {
    long long int x, y;
    cin >> x >> y;
    v.push_back({x, y});
  }
  sort((v).begin(), (v).end(), comp);
  long long int num = 0;
  for (auto x : v) {
    long long int X = x.first;
    long long int Y = x.second;
    num += 2 + 2 * (X != 0) + 2 * (Y != 0);
  }
  vector<pair<pair<long long int, long long int>, char> > v1;
  cout << num << '\n';
  for (auto x : v) {
    long long int X = x.first;
    long long int Y = x.second;
    if (X > 0)
      cout << 1 << " " << X << " " << 'R' << '\n';
    else if (X < 0)
      cout << 1 << " " << abs(X) << " " << 'L' << '\n';
    if (Y > 0)
      cout << 1 << " " << Y << " " << 'U' << '\n';
    else if (Y < 0)
      cout << 1 << " " << abs(Y) << " " << 'D' << '\n';
    cout << 2 << '\n';
    if (X > 0)
      cout << 1 << " " << X << " " << 'L' << '\n';
    else if (X < 0)
      cout << 1 << " " << abs(X) << " " << 'R' << '\n';
    if (Y > 0)
      cout << 1 << " " << Y << " " << 'D' << '\n';
    else if (Y < 0)
      cout << 1 << " " << abs(Y) << " " << 'U' << '\n';
    cout << 3 << '\n';
  }
}
