#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, i, j, k, x, y;
  vector<pair<int, pair<int, int> > > v;
  cin >> n;
  long long ans = 0;
  for (i = 0; i < n; i++) {
    cin >> x >> y;
    v.push_back(make_pair(abs(x) + abs(y), make_pair(x, y)));
    if (x == 0 || y == 0) {
      ans += 4;
    } else {
      ans += 6;
    }
  }
  sort(v.begin(), v.end());
  cout << ans << endl;
  for (i = 0; i < n; i++) {
    x = v[i].second.first;
    y = v[i].second.second;
    if (x < 0) {
      ans++;
      cout << 1 << " " << abs(x) << " "
           << "L"
           << "\n";
    }
    if (x > 0) {
      cout << 1 << " " << abs(x) << " "
           << "R"
           << "\n";
    }
    if (y > 0) {
      cout << 1 << " " << abs(y) << " "
           << "U"
           << "\n";
    }
    if (y < 0) {
      cout << 1 << " " << abs(y) << " "
           << "D"
           << "\n";
    }
    cout << 2 << "\n";
    if (x < 0) {
      cout << 1 << " " << abs(x) << " "
           << "R"
           << "\n";
    }
    if (x > 0) {
      cout << 1 << " " << abs(x) << " "
           << "L"
           << "\n";
    }
    if (y > 0) {
      cout << 1 << " " << abs(y) << " "
           << "D"
           << "\n";
    }
    if (y < 0) {
      cout << 1 << " " << abs(y) << " "
           << "U"
           << "\n";
    }
    cout << 3 << "\n";
  }
}
