#include <bits/stdc++.h>
using namespace std;
void __print(int x) { cerr << x; }
void __print(long x) { cerr << x; }
void __print(long long x) { cerr << x; }
void __print(unsigned x) { cerr << x; }
void __print(unsigned long x) { cerr << x; }
void __print(unsigned long long x) { cerr << x; }
void __print(float x) { cerr << x; }
void __print(double x) { cerr << x; }
void __print(long double x) { cerr << x; }
void __print(char x) { cerr << '\'' << x << '\''; }
void __print(const char *x) { cerr << '\"' << x << '\"'; }
void __print(const string &x) { cerr << '\"' << x << '\"'; }
void __print(bool x) { cerr << (x ? "true" : "false"); }
template <typename T, typename V>
void __print(const pair<T, V> &x) {
  cerr << '{';
  __print(x.first);
  cerr << ',';
  __print(x.second);
  cerr << '}';
}
template <typename T>
void __print(const T &x) {
  int f = 0;
  cerr << '{';
  for (auto &i : x) cerr << (f++ ? "," : ""), __print(i);
  cerr << "}";
}
void _print() { cerr << "]\n"; }
template <typename T, typename... V>
void _print(T t, V... v) {
  __print(t);
  if (sizeof...(v)) cerr << ", ";
  _print(v...);
}
void speed() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
void solve() {
  int n;
  cin >> n;
  vector<pair<int, pair<int, int>>> bombs(n);
  long long ans = 0;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    bombs[i].second.first = x;
    bombs[i].second.second = y;
    bombs[i].first = abs(x) + abs(y);
    ans += bombs[i].first;
  }
  ans = 2 * n;
  sort(bombs.begin(), bombs.end());
  for (auto it : bombs) {
    if (abs(it.second.first)) ans += 2;
    if (abs(it.second.second)) ans += 2;
    ;
  }
  cout << ans << "\n";
  for (auto it : bombs) {
    int dirx, diry;
    if (it.second.first > 0)
      dirx = 1;
    else
      dirx = -1;
    if (it.second.second > 0)
      diry = 1;
    else
      diry = -1;
    ;
    if (it.second.first) {
      cout << 1 << " " << abs(it.second.first) << " ";
      if (dirx > 0)
        cout << "R\n";
      else
        cout << "L\n";
    }
    if (it.second.second) {
      cout << 1 << " " << abs(it.second.second) << " ";
      if (diry > 0)
        cout << "U\n";
      else
        cout << "D\n";
    }
    cout << 2 << "\n";
    if (it.second.first) {
      cout << 1 << " " << abs(it.second.first) << " ";
      if (dirx < 0)
        cout << "R\n";
      else
        cout << "L\n";
    }
    if (it.second.second) {
      cout << 1 << " " << abs(it.second.second) << " ";
      if (diry < 0)
        cout << "U\n";
      else
        cout << "D\n";
    }
    cout << 3 << "\n";
  }
}
int main() {
  speed();
  int T = 1;
  while (T--) {
    solve();
  }
}
