#include <bits/stdc++.h>
using namespace std;
bool comp(pair<int, int> x, pair<int, int> y) {
  return abs(x.first) + abs(x.second) < abs(y.first) + abs(y.second);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int points;
  vector<pair<int, int> > p;
  long long moves;
  while (cin >> points) {
    moves = 0;
    p.clear();
    p.resize(points);
    for (int i = 0; i < points; i++) {
      cin >> p[i].first >> p[i].second;
      if (!p[i].first || !p[i].second)
        moves += 4;
      else
        moves += 6;
    }
    cout << moves << "\n";
    sort(p.begin(), p.end(), comp);
    for (int i = 0; i < p.size(); i++) {
      if (p[i].first) {
        cout << 1 << " " << abs(p[i].first) << " ";
        if (p[i].first > 0)
          cout << "R"
               << "\n";
        else
          cout << "L"
               << "\n";
      }
      if (p[i].second) {
        cout << 1 << " " << abs(p[i].second) << " ";
        if (p[i].second > 0)
          cout << "U"
               << "\n";
        else
          cout << "D"
               << "\n";
      }
      cout << 2 << "\n";
      if (p[i].first) {
        cout << 1 << " " << abs(p[i].first) << " ";
        if (p[i].first > 0)
          cout << "L"
               << "\n";
        else
          cout << "R"
               << "\n";
      }
      if (p[i].second) {
        cout << 1 << " " << abs(p[i].second) << " ";
        if (p[i].second > 0)
          cout << "D"
               << "\n";
        else
          cout << "U"
               << "\n";
      }
      cout << 3 << "\n";
    }
  }
  return 0;
}
