#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long T = 1;
  while (T--) {
    long long n;
    cin >> n;
    vector<pair<long long, long long> > q1, q2, q3, q4;
    for (long long i = 0; i < n; i++) {
      long long x, y;
      cin >> x >> y;
      if (x >= 0 && y >= 0)
        q1.push_back({x, y});
      else if (x >= 0 && y <= 0)
        q4.push_back({x, -y});
      else if (x <= 0 && y >= 0)
        q2.push_back({-x, y});
      else
        q3.push_back({-x, -y});
    }
    sort((q1).begin(), (q1).end());
    sort((q2).begin(), (q2).end());
    sort((q3).begin(), (q3).end());
    sort((q4).begin(), (q4).end());
    vector<string> ans;
    for (auto it = (q1).begin(); it != (q1).end(); it++) {
      long long x = it->first, y = it->second;
      string a = "", b = "", c = "", d = "";
      a = "1 " + to_string(x) + " R";
      b = "1 " + to_string(x) + " L";
      c = "1 " + to_string(y) + " U";
      d = "1 " + to_string(y) + " D";
      if (x) ans.push_back(a);
      if (y) ans.push_back(c);
      ans.push_back("2");
      if (y) ans.push_back(d);
      if (x) ans.push_back(b);
      ans.push_back("3");
    }
    for (auto it = (q2).begin(); it != (q2).end(); it++) {
      long long x = it->first, y = it->second;
      string a = "", b = "", c = "", d = "";
      a = "1 " + to_string(x) + " L";
      b = "1 " + to_string(x) + " R";
      c = "1 " + to_string(y) + " U";
      d = "1 " + to_string(y) + " D";
      if (x) ans.push_back(a);
      if (y) ans.push_back(c);
      ans.push_back("2");
      if (y) ans.push_back(d);
      if (x) ans.push_back(b);
      ans.push_back("3");
    }
    for (auto it = (q3).begin(); it != (q3).end(); it++) {
      long long x = it->first, y = it->second;
      string a = "", b = "", c = "", d = "";
      a = "1 " + to_string(x) + " L";
      b = "1 " + to_string(x) + " R";
      c = "1 " + to_string(y) + " D";
      d = "1 " + to_string(y) + " U";
      if (x) ans.push_back(a);
      if (y) ans.push_back(c);
      ans.push_back("2");
      if (y) ans.push_back(d);
      if (x) ans.push_back(b);
      ans.push_back("3");
    }
    for (auto it = (q4).begin(); it != (q4).end(); it++) {
      long long x = it->first, y = it->second;
      string a = "", b = "", c = "", d = "";
      a = "1 " + to_string(x) + " R";
      b = "1 " + to_string(x) + " L";
      c = "1 " + to_string(y) + " D";
      d = "1 " + to_string(y) + " U";
      if (x) ans.push_back(a);
      if (y) ans.push_back(c);
      ans.push_back("2");
      if (y) ans.push_back(d);
      if (x) ans.push_back(b);
      ans.push_back("3");
    }
    cout << ans.size() << "\n";
    for (auto it = (ans).begin(); it != (ans).end(); it++) cout << *it << "\n";
  }
  return 0;
}
