#include <bits/stdc++.h>
using namespace std;
long long int sq(long long int a) { return a * a; }
long long int multi(long long int a, long long int b) {
  return ((a % 1000000007) * (b % 1000000007)) % 1000000007;
}
long long int add(long long int a, long long int b) {
  return ((a % 1000000007) + (b % 1000000007)) % 1000000007;
}
long long int gcd(long long int a, long long int b) {
  return (b ? gcd(b, a % b) : a);
}
long long int lcm(long long int a, long long int b) {
  return (a * b) / (gcd(a, b));
}
bool compare(pair<long long int, long long int> a,
             pair<long long int, long long int> b) {
  return ((sq(a.first) + sq(a.second)) < (sq(b.first) + sq(b.second)));
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n;
  cin >> n;
  vector<pair<long long int, long long int>> a(n);
  for (long long int i = 0; i < n; i++) {
    cin >> a[i].first >> a[i].second;
  }
  sort(a.begin(), a.end(), compare);
  vector<vector<long long int>> ans;
  for (long long int i = 0; i < n; i++) {
    vector<long long int> z1, z2, z3, z4, z5, z6;
    if (a[i].first != 0) {
      z1.push_back(1);
      z1.push_back(abs(a[i].first));
      z1.push_back(((a[i].first > 0) ? 1 : 3));
    }
    if (a[i].second != 0) {
      z2.push_back(1);
      z2.push_back(abs(a[i].second));
      z2.push_back(((a[i].second > 0) ? 0 : 2));
    }
    z3.push_back(2);
    if (a[i].first != 0) {
      z4.push_back(1);
      z4.push_back(abs(a[i].first));
      z4.push_back(((a[i].first < 0) ? 1 : 3));
    }
    if (a[i].second != 0) {
      z5.push_back(1);
      z5.push_back(abs(a[i].second));
      z5.push_back(((a[i].second < 0) ? 0 : 2));
    }
    z6.push_back(3);
    if (z1.size() != 0) ans.push_back(z1);
    if (z2.size() != 0) ans.push_back(z2);
    if (z3.size() != 0) ans.push_back(z3);
    if (z4.size() != 0) ans.push_back(z4);
    if (z5.size() != 0) ans.push_back(z5);
    if (z6.size() != 0) ans.push_back(z6);
  }
  cout << ans.size() << '\n';
  for (long long int i = 0; i < ans.size(); i++) {
    if (ans[i].size() == 3) {
      cout << ans[i][0] << " " << ans[i][1] << " ";
      if (ans[i][2] == 0)
        cout << "U"
             << "\n";
      else if (ans[i][2] == 1)
        cout << "R\n";
      else if (ans[i][2] == 2)
        cout << "D\n";
      else if (ans[i][2] == 3)
        cout << "L\n";
    } else if (ans[i].size() != 0) {
      cout << ans[i][0] << "\n";
    }
  }
}
