#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int n;
  cin >> n;
  long long int i, x, y, ans = 0, index;
  set<pair<long long int, long long int>> s;
  vector<pair<long long int, long long int>> v;
  for (i = 0; i < n; i++) {
    cin >> x >> y;
    if (x != 0) ans += 2;
    if (y != 0) ans += 2;
    ans += 2;
    v.push_back({x, y});
    s.insert({(abs(x) + abs(y)), i});
  }
  cout << ans << "\n";
  for (auto j : s) {
    index = j.second;
    x = v[index].first;
    y = v[index].second;
    if (x > 0)
      cout << 1 << " " << x << " R"
           << "\n";
    if (x < 0)
      cout << 1 << " " << -1 * x << " L"
           << "\n";
    if (y > 0)
      cout << 1 << " " << y << " U"
           << "\n";
    if (y < 0)
      cout << 1 << " " << -1 * y << " D"
           << "\n";
    cout << 2 << "\n";
    if (y > 0)
      cout << 1 << " " << y << " D"
           << "\n";
    if (y < 0)
      cout << 1 << " " << -1 * y << " U"
           << "\n";
    if (x > 0)
      cout << 1 << " " << x << " L"
           << "\n";
    if (x < 0)
      cout << 1 << " " << -1 * x << " R"
           << "\n";
    cout << 3 << "\n";
  }
  return 0;
}
