#include <bits/stdc++.h>
using namespace std;
long long int dist(long long int x, long long int y) { return x * x + y * y; }
int32_t main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long int T;
  cin >> T;
  std::vector<pair<long long int, pair<long long int, long long int>>> dat;
  for (long long int ii = 0; ii < T; ii++) {
    long long int x, y;
    cin >> x >> y;
    long long int slp = dist(x, y);
    dat.push_back({slp, {x, y}});
  }
  sort(dat.begin(), dat.end());
  std::vector<pair<long long int, pair<long long int, char>>> ans;
  for (auto itr : dat) {
    long long int x = itr.second.first, y = itr.second.second;
    map<char, long long int> m;
    if (x > 0) {
      m['R'] = x;
    } else if (x < 0) {
      m['L'] = -x;
    }
    if (y > 0) {
      m['U'] = y;
    } else if (y < 0) {
      m['D'] = -y;
    }
    for (auto it : m) {
      ans.push_back({1, {it.second, it.first}});
    }
    ans.push_back({2, {0, '0'}});
    for (auto it : m) {
      if (it.first == 'L') {
        ans.push_back({1, {it.second, 'R'}});
      } else if (it.first == 'R') {
        ans.push_back({1, {it.second, 'L'}});
      } else if (it.first == 'D') {
        ans.push_back({1, {it.second, 'U'}});
      } else {
        ans.push_back({1, {it.second, 'D'}});
      }
    }
    ans.push_back({3, {0, '0'}});
  }
  cout << ans.size() << '\n';
  for (auto it : ans) {
    if (it.first == 1) {
      cout << 1 << " " << it.second.first << " " << it.second.second << '\n';
    } else {
      cout << it.first << '\n';
    }
  }
  return 0;
}
