#include <bits/stdc++.h>
using namespace std;
bool compare(pair<long long, long long> p1, pair<long long, long long> p2) {
  return abs(p1.first) + abs(p1.second) < abs(p2.first) + abs(p2.second);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  vector<pair<long long, long long> > v;
  for (int i = 0; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    v.push_back(make_pair(x, y));
  }
  sort(v.begin(), v.end(), compare);
  long long ct = 0;
  for (int i = 0; i < v.size(); i++) {
    long long x = v[i].first;
    long long y = v[i].second;
    if (x != 0) {
      ct += 2;
    }
    if (y != 0) {
      ct += 2;
    }
    ct += 2;
  }
  cout << ct << '\n';
  for (int i = 0; i < v.size(); i++) {
    long long x = v[i].first;
    long long y = v[i].second;
    if (x > 0) {
      cout << 1 << " " << abs(x - 0) << " " << 'R' << '\n';
    } else if (x < 0) {
      cout << 1 << " " << abs(x - 0) << " " << 'L' << '\n';
    }
    if (y > 0) {
      cout << 1 << " " << abs(y - 0) << " " << 'U' << '\n';
    } else if (y < 0) {
      cout << 1 << " " << abs(y - 0) << " " << 'D' << '\n';
    }
    cout << 2 << '\n';
    if (x < 0) {
      cout << 1 << " " << abs(x - 0) << " " << 'R' << '\n';
    } else if (x > 0) {
      cout << 1 << " " << abs(x - 0) << " " << 'L' << '\n';
    }
    if (y < 0) {
      cout << 1 << " " << abs(y - 0) << " " << 'U' << '\n';
    } else if (y > 0) {
      cout << 1 << " " << abs(y - 0) << " " << 'D' << '\n';
    }
    cout << 3 << '\n';
  }
}
