#include <bits/stdc++.h>
using namespace std;
long long power(long long b, long long e, long long m) {
  if (e == 0) return 1;
  if (e % 2)
    return ((b % m) * power((b % m) * (b % m), (e - 1) / 2, m) % m) % m;
  else
    return power((b % m) * (b % m), e / 2, m) % m;
}
long long ncr(long long n, long long r) {
  long long f1 = 1;
  for (long long i = 1; i <= n; i++) {
    f1 = (f1 % 998244353 * (i) % 998244353) % 998244353;
  }
  long long f2 = 1;
  for (long long i = 1; i <= r; i++) {
    f2 = (f2 % 998244353 * (i) % 998244353) % 998244353;
  }
  long long f3 = 1;
  for (long long i = 1; i <= n - r; i++) {
    f3 = (f3 % 998244353 * i % 998244353) % 998244353;
  }
  long long k = (f1 % 998244353 * power(f2, 998244353 - 2, 998244353) %
                 998244353 * power(f3, 998244353 - 2, 998244353) % 998244353) %
                998244353;
  return k;
}
void dpv(vector<long long> v) {
  for (long long i = 0; i < v.size(); i++) {
    cout << v[i] << " ";
  }
  cout << '\n';
}
void dpv(vector<pair<long long, long long> > v) {
  for (long long i = 0; i < v.size(); i++) {
    cout << v[i].first << " " << v[i].second << '\n';
  }
}
void dpv(set<long long> v) {
  for (auto i : v) {
    cout << i << " ";
  }
  cout << '\n';
}
long long Logn(long long n, long long k) {
  return (n > k - 1) ? 1 + Logn(n / k, k) : 0;
}
long long max(long long a, long long b) {
  if (a > b) {
    return a;
  } else {
    return b;
  }
}
string add(string s1, string s2) {
  string s3;
  long long z = s1.length() - s2.length();
  if (z < 0) {
    z = z * (-1);
  }
  for (long long i = 0; i < z; i++) {
    if (min(s1.length(), s2.length()) == s1.length()) {
      s1 = '0' + s1;
    } else {
      s2 = '0' + s2;
    }
  }
  long long c = 0;
  for (long long i = s1.length() - 1; i >= 0; i--) {
    long long z1 = s1[i] - '0';
    long long z2 = s2[i] - '0';
    long long k = (z1 + z2 + c) % 2;
    c = (z1 + z2 + c) / 2;
    s3 = char('0' + k) + s3;
  }
  if (c != 0) {
    s3 = char('0' + c) + s3;
  }
  return s3;
}
bool comp(const pair<long long, long long> &a,
          const pair<long long, long long> &b) {
  return (abs(a.first) + abs(a.second) < abs(b.first) + abs(b.second));
}
long long min(long long a, long long b) {
  if (a < b) {
    return a;
  } else {
    return b;
  }
}
bool bylength(const string &a, const string &b) {
  if (a.length() > b.length()) {
    return false;
  } else {
    return true;
  }
}
void oblivious() {
  long long n;
  cin >> n;
  vector<pair<long long, long long> > v;
  for (long long i = 0; i < n; i++) {
    long long x, y;
    cin >> x >> y;
    v.push_back(make_pair(x, y));
  }
  sort(v.begin(), v.end());
  long long cnt = 0;
  if (!v.empty()) {
    for (long long i = 0; i < v.size(); i++) {
      if (v[i].first != 0 && v[i].second != 0) {
        cnt += 6;
      } else {
        cnt += 4;
      }
    }
    sort(v.begin(), v.end(), comp);
  }
  cout << cnt << '\n';
  for (auto i : v) {
    if (i.first != 0 && i.second != 0) {
      if (i.first > 0) {
        cout << "1 " << i.first << " R" << '\n';
      } else if (i.first < 0) {
        cout << "1 " << abs(i.first) << " L" << '\n';
      }
      if (i.second > 0) {
        cout << "1 " << i.second << " U" << '\n';
      } else if (i.second < 0) {
        cout << "1 " << abs(i.second) << " D" << '\n';
      }
      cout << "2" << '\n';
      if (i.second > 0) {
        cout << "1 " << i.second << " D" << '\n';
      } else if (i.second < 0) {
        cout << "1 " << abs(i.second) << " U" << '\n';
      }
      if (i.first > 0) {
        cout << "1 " << i.first << " L" << '\n';
      } else if (i.first < 0) {
        cout << "1 " << abs(i.first) << " R" << '\n';
      }
      cout << "3" << '\n';
    } else if (i.first == 0) {
      if (i.second > 0) {
        cout << "1 " << i.second << " U" << '\n';
      } else if (i.second < 0) {
        cout << "1 " << abs(i.second) << " D" << '\n';
      }
      cout << "2" << '\n';
      if (i.second > 0) {
        cout << "1 " << i.second << " D" << '\n';
      } else if (i.second < 0) {
        cout << "1 " << abs(i.second) << " U" << '\n';
      }
      cout << "3" << '\n';
    } else if (i.second == 0) {
      if (i.first > 0) {
        cout << "1 " << i.first << " R" << '\n';
      } else if (i.first < 0) {
        cout << "1 " << abs(i.first) << " L" << '\n';
      }
      cout << "2" << '\n';
      if (i.first > 0) {
        cout << "1 " << i.first << " L" << '\n';
      } else if (i.first < 0) {
        cout << "1 " << abs(i.first) << " R" << '\n';
      }
      cout << "3" << '\n';
    }
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    oblivious();
  }
  return 0;
}
