#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long steps = 0;
  vector<vector<long long>> v(n, vector<long long>(3));
  for (int i = 0; i < n; i++) {
    cin >> v[i][1] >> v[i][2];
    v[i][0] = v[i][2] * v[i][2] + v[i][1] * v[i][1];
    if (v[i][1] == 0 || v[i][2] == 0) {
      steps += 4;
    } else {
      steps += 6;
    }
  }
  cout << steps << "\n";
  sort(v.begin(), v.end());
  for (int i = 0; i < n; i++) {
    if (v[i][1] > 0)
      cout << "1 " << v[i][1] << " R"
           << "\n";
    else if (v[i][1] < 0)
      cout << "1 " << v[i][1] * -1 << " L"
           << "\n";
    if (v[i][2] > 0)
      cout << "1 " << v[i][2] << " U"
           << "\n";
    else if (v[i][2] < 0)
      cout << "1 " << v[i][2] * -1 << " D"
           << "\n";
    cout << "2\n";
    if (v[i][2] > 0)
      cout << "1 " << v[i][2] << " D"
           << "\n";
    else if (v[i][2] < 0)
      cout << "1 " << v[i][2] * -1 << " U"
           << "\n";
    if (v[i][1] > 0)
      cout << "1 " << v[i][1] << " L"
           << "\n";
    else if (v[i][1] < 0)
      cout << "1 " << v[i][1] * -1 << " R"
           << "\n";
    cout << "3\n";
  }
}
