#include <bits/stdc++.h>
using namespace std;
struct b000000m {
  int x, y;
};
int main() {
  int n;
  cin >> n;
  vector<b000000m> pos, neg;
  int counter = 2 * n;
  while (n--) {
    int x, y;
    cin >> x >> y;
    if (x > 0)
      pos.push_back({x, y});
    else
      neg.push_back({x, y});
    if (x != 0) counter += 2;
    if (y != 0) counter += 2;
  }
  sort(pos.begin(), pos.end(), [](b000000m a, b000000m b) {
    if (a.x == b.x) return abs(a.y) < abs(b.y);
    return abs(a.x) < abs(b.x);
  });
  sort(neg.begin(), neg.end(), [](b000000m a, b000000m b) {
    if (a.x == b.x) return abs(a.y) < abs(b.y);
    return abs(a.x) < abs(b.x);
  });
  cout << counter << endl;
  for (int i = 0; i < pos.size(); i++) {
    if (pos[i].y > 0) {
      if (pos[i].x != 0) cout << 1 << ' ' << pos[i].x << " R\n";
      if (pos[i].y != 0) cout << 1 << ' ' << pos[i].y << " U\n";
      cout << 2 << '\n';
      if (pos[i].y != 0) cout << 1 << ' ' << pos[i].y << " D\n";
      if (pos[i].x != 0) cout << 1 << ' ' << pos[i].x << " L\n";
      cout << 3 << '\n';
    } else {
      if (pos[i].x != 0) cout << 1 << ' ' << pos[i].x << " R\n";
      if (pos[i].y != 0) cout << 1 << ' ' << -pos[i].y << " D\n";
      cout << 2 << '\n';
      if (pos[i].y != 0) cout << 1 << ' ' << -pos[i].y << " U\n";
      if (pos[i].x != 0) cout << 1 << ' ' << pos[i].x << " L\n";
      cout << 3 << '\n';
    }
  }
  for (int i = 0; i < neg.size(); i++) {
    if (neg[i].y > 0) {
      if (neg[i].x != 0) cout << 1 << ' ' << -neg[i].x << " L\n";
      if (neg[i].y != 0) cout << 1 << ' ' << neg[i].y << " U\n";
      cout << 2 << '\n';
      if (neg[i].y != 0) cout << 1 << ' ' << neg[i].y << " D\n";
      if (neg[i].x != 0) cout << 1 << ' ' << -neg[i].x << " R\n";
      cout << 3 << '\n';
    } else {
      if (neg[i].x != 0) cout << 1 << ' ' << -neg[i].x << " L\n";
      if (neg[i].y != 0) cout << 1 << ' ' << -neg[i].y << " D\n";
      cout << 2 << '\n';
      if (neg[i].y != 0) cout << 1 << ' ' << -neg[i].y << " U\n";
      if (neg[i].x != 0) cout << 1 << ' ' << -neg[i].x << " R\n";
      cout << 3 << '\n';
    }
  }
}
