#include <bits/stdc++.h>
using namespace std;
bool comp(pair<int, int> a, pair<int, int> b) {
  if (abs(a.first) + abs(a.second) < abs(b.first) + abs(b.second)) {
    return true;
  } else {
    return false;
  }
}
int main() {
  ios::sync_with_stdio(false);
  cout.tie(NULL);
  cin.tie(NULL);
  int n;
  cin >> n;
  int count = 0;
  vector<pair<int, int>> p(n);
  for (int i = 0; i < n; i++) {
    cin >> p[i].first >> p[i].second;
    if (p[i].first != 0) {
      count += 2;
    }
    if (p[i].second != 0) {
      count += 2;
    }
    count += 2;
  }
  sort(p.begin(), p.end(), comp);
  cout << count << endl;
  for (int i = 0; i < p.size(); i++) {
    if (0 < p[i].first) {
      cout << 1 << " " << p[i].first << " R"
           << "\n";
    }
    if (0 > p[i].first) {
      cout << 1 << " " << -1 * p[i].first << " L"
           << "\n";
    }
    if (0 < p[i].second) {
      cout << 1 << " " << p[i].second << " U"
           << "\n";
    }
    if (0 > p[i].second) {
      cout << 1 << " " << -1 * p[i].second << " D"
           << "\n";
    }
    cout << 2 << "\n";
    if (0 < p[i].first) {
      cout << 1 << " " << p[i].first << " L"
           << "\n";
    }
    if (0 > p[i].first) {
      cout << 1 << " " << -1 * p[i].first << " R"
           << "\n";
    }
    if (0 < p[i].second) {
      cout << 1 << " " << p[i].second << " D"
           << "\n";
    }
    if (0 > p[i].second) {
      cout << 1 << " " << -1 * p[i].second << " U"
           << "\n";
    }
    cout << 3 << "\n";
  }
}
