#include <bits/stdc++.h>
using namespace std;
bool cmp(pair<int, int> U, pair<int, int> V) {
  int U_dist = abs(U.first) + abs(U.second);
  int V_dist = abs(V.first) + abs(V.second);
  return U_dist < V_dist;
}
int main() {
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int numMoves = 2 * N;
  vector<pair<int, int> > bombs;
  for (int i = 0; i < N; i++) {
    int X, Y;
    cin >> X >> Y;
    bombs.emplace_back(Y, X);
    if (X == 0 or Y == 0)
      numMoves += 2;
    else
      numMoves += 4;
  }
  cout << numMoves << "\n";
  sort(bombs.begin(), bombs.end(), cmp);
  for (pair<int, int> curr : bombs) {
    if (curr.first > 0) {
      cout << 1 << " " << curr.first << " "
           << "U"
           << "\n";
    } else if (curr.first < 0) {
      cout << 1 << " " << -curr.first << " "
           << "D"
           << "\n";
    }
    if (curr.second > 0) {
      cout << 1 << " " << curr.second << " " << 'R' << "\n";
    } else if (curr.second < 0) {
      cout << 1 << " " << -curr.second << " " << 'L' << "\n";
    }
    cout << 2 << "\n";
    if (curr.first > 0) {
      cout << 1 << " " << curr.first << " " << 'D' << "\n";
    } else if (curr.first < 0) {
      cout << 1 << " " << -curr.first << " " << 'U' << "\n";
    }
    if (curr.second > 0) {
      cout << 1 << " " << curr.second << " " << 'L' << "\n";
    } else if (curr.second < 0) {
      cout << 1 << " " << -curr.second << " " << 'R' << "\n";
    }
    cout << 3 << "\n";
  }
}
