#include <bits/stdc++.h>
using namespace std;
bool cmp(pair<int, int> a, pair<int, int> b) {
  return (abs(a.first) + abs(a.second)) < (abs(b.first) + abs(b.second));
}
int main() {
  int n;
  cin >> n;
  vector<pair<int, int>> ara(n);
  int cnt = 0;
  int nz = 0;
  int z = 0;
  for (int i = 0; i < n; i++) {
    cin >> ara[i].first >> ara[i].second;
    if (ara[i].first == 0 || ara[i].second == 0) z++;
  }
  sort(ara.begin(), ara.end(), cmp);
  cnt = n * 6 - z * 2;
  cout << cnt << endl;
  for (int i = 0; i < n; i++) {
    int x = ara[i].first;
    int y = ara[i].second;
    if (abs(x)) printf("1 %d %c\n", abs(x), x > 0 ? 'R' : 'L');
    if (abs(y)) printf("1 %d %c\n", abs(y), y > 0 ? 'U' : 'D');
    cout << '2' << endl;
    if (abs(x)) printf("1 %d %c\n", abs(x), x > 0 ? 'L' : 'R');
    if (abs(y)) printf("1 %d %c\n", abs(y), y > 0 ? 'D' : 'U');
    cout << "3" << endl;
  }
  return 0;
}
