#include <bits/stdc++.h>
using namespace std;
vector<pair<long long int, long long int>> v;
int main() {
  ios_base::sync_with_stdio(false);
  long long int n, x, y, k = 0;
  cin >> n;
  for (long long int i = 0; i < n; i++) {
    cin >> x >> y;
    if (x != 0) k++;
    if (y != 0) k++;
    v.push_back(make_pair(x, y));
  }
  sort(v.begin(), v.end(),
       [](const pair<long long int, long long int> &left,
          const pair<long long int, long long int> &right) {
         return abs(left.first) + abs(left.second) <
                abs(right.first) + abs(right.second);
       });
  cout << n * 2 + k * 2 << "\n";
  char d1, d2, r1, r2;
  for (long long int i = 0; i < n; i++) {
    if (v[i].first < 0) {
      d1 = 'L';
      r1 = 'R';
    } else {
      d1 = 'R';
      r1 = 'L';
    }
    if (v[i].second < 0) {
      d2 = 'D';
      r2 = 'U';
    } else {
      d2 = 'U';
      r2 = 'D';
    }
    if (v[i].first != 0) cout << "1 " << abs(v[i].first) << " " << d1 << "\n";
    if (v[i].second != 0) cout << "1 " << abs(v[i].second) << " " << d2 << "\n";
    cout << "2\n";
    if (v[i].first != 0) cout << "1 " << abs(v[i].first) << " " << r1 << "\n";
    if (v[i].second != 0) cout << "1 " << abs(v[i].second) << " " << r2 << "\n";
    cout << "3\n";
  }
  return 0;
}
