#include <bits/stdc++.h>
using namespace std;
bool myComp(pair<long long, long long> &a, pair<long long, long long> &b) {
  return (abs(a.first) + abs(a.second)) <= (abs(b.first) + abs(b.second));
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long ans = 0;
  vector<pair<long long, long long>> bomb;
  for (long long i = 0; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    bomb.push_back({x, y});
    ans += 2 + 2 * ((x != 0) + (y != 0));
  }
  cout << ans << "\n";
  sort(bomb.begin(), bomb.end(), myComp);
  for (auto p : bomb) {
    long long dx = p.first, dy = p.second;
    if (dx > 0) cout << "1 " << dx << " R\n";
    if (dx < 0) cout << "1 " << -dx << " L\n";
    if (dy > 0) cout << "1 " << dy << " U\n";
    if (dy < 0) cout << "1 " << -dy << " D\n";
    cout << "2\n";
    if (dx > 0) cout << "1 " << dx << " L\n";
    if (dx < 0) cout << "1 " << -dx << " R\n";
    if (dy > 0) cout << "1 " << dy << " D\n";
    if (dy < 0) cout << "1 " << -dy << " U\n";
    cout << "3\n";
  }
}
