#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:65777216")
using namespace std;
long long n, x, y;
vector<pair<long long, pair<long long, long long>>> a;
long long ans = 0;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    a.push_back(make_pair(abs(x) + abs(y), make_pair(x, y)));
    if (x != 0 && y != 0) {
      ans += 6;
    } else {
      ans += 4;
    }
  }
  cout << ans << endl;
  sort(a.begin(), a.end());
  for (int i = 0; i < n; i++) {
    if (a[i].second.first > 0) {
      cout << "1 " << a[i].second.first << " R" << endl;
    } else if (a[i].second.first < 0) {
      cout << "1 " << -a[i].second.first << " L" << endl;
    }
    if (a[i].second.second > 0) {
      cout << "1 " << a[i].second.second << " U" << endl;
    } else if (a[i].second.second < 0) {
      cout << "1 " << -a[i].second.second << " D" << endl;
    }
    cout << 2 << endl;
    if (a[i].second.first > 0) {
      cout << "1 " << a[i].second.first << " L" << endl;
    } else if (a[i].second.first < 0) {
      cout << "1 " << -a[i].second.first << " R" << endl;
    }
    if (a[i].second.second > 0) {
      cout << "1 " << a[i].second.second << " D" << endl;
    } else if (a[i].second.second < 0) {
      cout << "1 " << -a[i].second.second << " U" << endl;
    }
    cout << 3 << endl;
  }
}
