#include <bits/stdc++.h>
using namespace std;
long long i, j, k, l, a, b, n, m, g, z;
string s[100005];
map<long long, vector<long long> > v;
map<long long, vector<long long> >::iterator it, ti;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> k >> l;
    if (l == 0 || k == 0) g++;
    v[k].push_back(l);
  }
  for (it = v.begin(); it != v.end(); it++)
    sort(it->second.begin(), it->second.end());
  cout << 6 * n - g * 2 << endl;
  v[-9999999999].push_back(0);
  for (it = v.begin(); it != v.end(); it++) {
    if (it->first >= 0) {
      for (i = 0; i < it->second.size(); i++)
        if (it->second[i] >= 0) {
          break;
        }
      for (j = i; j < it->second.size(); j++) {
        if (it->first != 0) cout << "1 " << abs(it->first) << " R\n";
        if (it->second[j] != 0) cout << "1 " << abs(it->second[j]) << " U\n";
        cout << 2 << endl;
        if (it->second[j] != 0) cout << "1 " << abs(it->second[j]) << " D\n";
        if (it->first != 0) cout << "1 " << abs(it->first) << " L\n";
        cout << "3\n";
      }
      for (j = i - 1; j >= 0; j--) {
        if (it->first != 0) cout << "1 " << abs(it->first) << " R\n";
        if (it->second[j] != 0) cout << "1 " << abs(it->second[j]) << " D\n";
        cout << "2\n";
        if (it->second[j] != 0) cout << "1 " << abs(it->second[j]) << " U\n";
        if (it->first != 0) cout << "1 " << abs(it->first) << " L\n";
        cout << "3\n";
      }
    }
  }
  for (ti = v.begin(); ti != v.end(); ti++)
    if (ti->first >= 0) {
      break;
    }
  for (it = ti; it != v.begin(); it--)
    if (it->first < 0) {
      for (i = 0; i < it->second.size(); i++)
        if (it->second[i] >= 0) {
          break;
        }
      for (j = i; j < it->second.size(); j++) {
        if (it->first != 0) cout << "1 " << abs(it->first) << " L\n";
        if (it->second[j] != 0) cout << "1 " << abs(it->second[j]) << " U\n";
        cout << "2\n";
        if (it->second[j] != 0) cout << "1 " << abs(it->second[j]) << " D\n";
        if (it->first != 0) cout << "1 " << abs(it->first) << " R\n";
        cout << "3\n";
      }
      for (j = i - 1; j >= 0; j--) {
        if (it->first != 0) cout << "1 " << abs(it->first) << " L\n";
        if (it->second[j] != 0) cout << "1 " << abs(it->second[j]) << " D\n";
        cout << "2\n";
        if (it->second[j] != 0) cout << "1 " << abs(it->second[j]) << " U\n";
        if (it->first != 0) cout << "1 " << abs(it->first) << " R\n";
        cout << "3\n";
      }
    }
}
