#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  long long int n, i, z = 0;
  cin >> n;
  long long int a[n][2];
  pair<double, long long int> b[n];
  for (i = 0; i < n; i++) {
    cin >> a[i][0] >> a[i][1];
    b[i].first = sqrt(a[i][0] * a[i][0] + a[i][1] * a[i][1]);
    b[i].second = i;
    if (!a[i][0] || !a[i][1]) {
      z++;
    }
  }
  sort(b, b + n);
  cout << 6 * n - 2 * z << endl;
  for (i = 0; i < n; i++) {
    if (a[b[i].second][0] > 0)
      cout << 1 << " " << a[b[i].second][0] << " R\n";
    else if (a[b[i].second][0] < 0)
      cout << 1 << " " << -1 * a[b[i].second][0] << " L\n";
    if (a[b[i].second][1] > 0)
      cout << 1 << " " << a[b[i].second][1] << " U\n";
    else if (a[b[i].second][1] < 0)
      cout << 1 << " " << -1 * a[b[i].second][1] << " D\n";
    cout << 2 << endl;
    if (a[b[i].second][0] < 0)
      cout << 1 << " " << -1 * a[b[i].second][0] << " R\n";
    else if (a[b[i].second][0] > 0)
      cout << 1 << " " << a[b[i].second][0] << " L\n";
    if (a[b[i].second][1] < 0)
      cout << 1 << " " << -1 * a[b[i].second][1] << " U\n";
    else if (a[b[i].second][1] > 0)
      cout << 1 << " " << a[b[i].second][1] << " D\n";
    cout << 3 << endl;
  }
  return 0;
}
