#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n;
  vector<string> abc;
  vector<pair<int, pair<int, int> > > v;
  for (int i = 0; i < n; i++) {
    cin >> x >> y;
    v.push_back({abs(x) + abs(y), {x, y}});
  }
  sort(v.begin(), v.end());
  long long ans = 2 * n;
  for (int i = 0; i < v.size(); i++) {
    pair<int, pair<int, int> > p = v[i];
    x = p.second.first;
    y = p.second.second;
    vector<string> go;
    vector<string> back;
    if (x == 0) {
      string z = "";
      string zx = to_string(abs(y));
      z = z + "1 " + zx + " ";
      if (y > 0)
        z += "U";
      else
        z += "D";
      go.push_back(z);
      z.pop_back();
      if (y < 0)
        z += "U";
      else
        z += "D";
      back.push_back(z);
    } else if (y == 0) {
      string z = "";
      string zx = to_string(abs(x));
      z = z + "1 " + zx + " ";
      if (x > 0)
        z += "R";
      else
        z += "L";
      go.push_back(z);
      z.pop_back();
      if (x < 0)
        z += "R";
      else
        z += "L";
      back.push_back(z);
    } else {
      string z = "";
      string zx = to_string(abs(x));
      z = z + "1 " + zx + " ";
      if (x > 0)
        z += "R";
      else
        z += "L";
      go.push_back(z);
      z.pop_back();
      if (x < 0)
        z += "R";
      else
        z += "L";
      back.push_back(z);
      z = "";
      zx = to_string(abs(y));
      z = z + "1 " + zx + " ";
      if (y > 0)
        z += "U";
      else
        z += "D";
      go.push_back(z);
      z.pop_back();
      if (y < 0)
        z += "U";
      else
        z += "D";
      back.push_back(z);
    }
    for (int i = 0; i < go.size(); i++) abc.push_back(go[i]);
    abc.push_back("2");
    for (int i = 0; i < back.size(); i++) abc.push_back(back[i]);
    abc.push_back("3");
    ans += go.size() + back.size();
  }
  cout << ans << "\n";
  for (int i = 0; i < abc.size(); i++) cout << abc[i] << "\n";
}
