#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0), cin.sync_with_stdio(0), cout.tie(0), cout.sync_with_stdio(0);
  int num_bombs;
  cin >> num_bombs;
  vector<pair<int, int>> bombs(num_bombs);
  int moves = num_bombs * 2;
  for (pair<int, int>& p : bombs) {
    cin >> p.first >> p.second;
    moves += (p.first != 0) * 2 + (p.second != 0) * 2;
  }
  sort(bombs.begin(), bombs.end(), [](pair<int, int> a, pair<int, int> b) {
    return abs(a.first) + abs(a.second) < abs(b.first) + abs(b.second);
  });
  cout << moves << '\n';
  for (int i = 0; i < bombs.size(); i++) {
    if (bombs[i].first != 0) {
      cout << 1 << ' ' << abs(bombs[i].first) << ' '
           << (bombs[i].first > 0 ? 'R' : 'L') << '\n';
    }
    if (bombs[i].second != 0) {
      cout << 1 << ' ' << abs(bombs[i].second) << ' '
           << (bombs[i].second > 0 ? 'U' : 'D') << '\n';
    }
    cout << 2 << '\n';
    if (bombs[i].first != 0) {
      cout << 1 << ' ' << abs(bombs[i].first) << ' '
           << (bombs[i].first > 0 ? 'L' : 'R') << '\n';
    }
    if (bombs[i].second != 0) {
      cout << 1 << ' ' << abs(bombs[i].second) << ' '
           << (bombs[i].second > 0 ? 'D' : 'U') << '\n';
    }
    cout << 3 << '\n';
  }
  return 0;
}
