#include <bits/stdc++.h>
using namespace std;
const int inf = (int)2e9;
const long long md = 1000000007;
int dx[] = {1, -1, 0, 0}, dy[] = {0, 0, 1, -1};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<pair<int, int> > v(n);
  for (int i = 0; i < (int)n; i++) {
    cin >> v[i].first >> v[i].second;
  }
  sort((v).begin(), (v).end(), [&](pair<int, int>& a, pair<int, int>& b) {
    return abs(a.first) + abs(a.second) < abs(b.first) + abs(b.second);
  });
  vector<string> out;
  for (pair<int, int>& p : v) {
    int first = p.first, second = p.second;
    if (first) {
      out.emplace_back("1 " + to_string(abs(first)) + " " +
                       (first > 0 ? "R" : "L"));
    }
    if (second) {
      out.emplace_back("1 " + to_string(abs(second)) + " " +
                       (second > 0 ? "U" : "D"));
    }
    out.emplace_back(to_string(2));
    if (second) {
      out.emplace_back("1 " + to_string(abs(second)) + " " +
                       (second < 0 ? "U" : "D"));
    }
    if (first) {
      out.emplace_back("1 " + to_string(abs(first)) + " " +
                       (first < 0 ? "R" : "L"));
    }
    out.emplace_back(to_string(3));
  }
  cout << (int)(out.size()) << "\n";
  for (string& s : out) cout << s << "\n";
}
