#include <bits/stdc++.h>
using namespace std;
bool comp(pair<long long, long long> a, pair<long long, long long> b) {
  if (abs(a.first) < abs(b.first)) return true;
  if (a.first == b.first) {
    if (abs(a.second) < abs(b.second))
      return true;
    else
      return false;
  }
  return false;
}
void solve() {
  long long n;
  cin >> n;
  vector<pair<long long, long long>> a(n);
  vector<pair<pair<long long, long long>, long long>> lol(n);
  for (long long i = 0; i < n; i++) {
    long long x, y;
    cin >> a[i].first >> a[i].second;
    lol[i].first.first = abs(a[i].first);
    lol[i].first.second = abs(a[i].second);
    lol[i].second = i;
  }
  vector<vector<long long>> ans(1e6, vector<long long>(3));
  long long ans_kol = 0;
  sort(lol.begin(), lol.end());
  for (long long x = 0; x < n; x++) {
    long long posl = 0;
    long long i = lol[x].second;
    vector<vector<long long>> posle(2, vector<long long>(3));
    if (a[i].first > 0) {
      ans_kol++;
      ans[ans_kol] = {1, a[i].first, 0};
      posle[posl] = {1, a[i].first, 1};
      posl++;
    }
    if (a[i].first < 0) {
      ans_kol++;
      ans[ans_kol] = {1, abs(a[i].first), 1};
      posle[posl] = {1, abs(a[i].first), 0};
      posl++;
    }
    if (a[i].second > 0) {
      ans_kol++;
      ans[ans_kol] = {1, a[i].second, 2};
      posle[posl] = {1, a[i].second, 3};
      posl++;
    }
    if (a[i].second < 0) {
      ans_kol++;
      ans[ans_kol] = {1, abs(a[i].second), 3};
      posle[posl] = {1, abs(a[i].second), 2};
      posl++;
    }
    ans_kol++;
    ans[ans_kol][0] = 2;
    if (posl == 2) {
      reverse(posle.begin(), posle.end());
    }
    for (long long j = 0; j < posl; j++) {
      ans_kol++;
      ans[ans_kol] = posle[j];
    }
    ans_kol++;
    ans[ans_kol][0] = 228 ^ 1488;
  }
  cout << ans_kol << '\n';
  string s = "RLUD";
  for (long long i = 1; i < ans_kol + 1; i++) {
    if (ans[i][0] == 1)
      cout << ans[i][0] << " " << ans[i][1] << " " << s[ans[i][2]] << '\n';
    else if (ans[i][0] == 2)
      cout << 2 << '\n';
    else
      cout << 3 << '\n';
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  solve();
}
