func_code_string: #include <bits/stdc++.h>   using namespace std;   bool cmp(pair<int, int> a, pair<int, int> b) {     return abs(a.first) + abs(a.second) < abs(b.first) + abs(b.second);   }   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     int n;     cin >> n;     vector<pair<int, int>> q1;     vector<pair<int, int>> q2;     vector<pair<int, int>> q3;     vector<pair<int, int>> q4;     for (int i = 0; i < n; i++) {       int x, y;       cin >> x >> y;       if (x > 0 && y >= 0) {         q1.push_back(make_pair(x, y));       }       if (x <= 0 && y > 0) {         q2.push_back(make_pair(x, y));       }       if (x < 0 && y <= 0) {         q3.push_back(make_pair(x, y));       }       if (x >= 0 && y < 0) {         q4.push_back(make_pair(x, y));       }     }     sort(q1.begin(), q1.end(), cmp);     sort(q2.begin(), q2.end(), cmp);     sort(q3.begin(), q3.end(), cmp);     sort(q4.begin(), q4.end(), cmp);     int ans = 0;     for (int i = 0; i < q1.size(); i++) {       ans += 4;       if (q1[i].second != 0) {         ans += 2;       }     }     for (int i = 0; i < q2.size(); i++) {       ans += 4;       if (q2[i].first != 0) {         ans += 2;       }     }     for (int i = 0; i < q3.size(); i++) {       ans += 4;       if (q3[i].second != 0) {         ans += 2;       }     }     for (int i = 0; i < q4.size(); i++) {       ans += 4;       if (q4[i].first != 0) {         ans += 2;       }     }     cout << ans << endl;     for (int i = 0; i < q1.size(); i++) {       cout <<  1   << abs(q1[i].first) <<   R n ;       if (q1[i].second != 0) {         cout <<  1   << abs(q1[i].second) <<   U n ;       }       cout << 2 << endl;       if (q1[i].second != 0) {         cout <<  1   << abs(q1[i].second) <<   D n ;       }       cout <<  1   << abs(q1[i].first) <<   L n ;       cout << 3 << endl;     }     for (int i = 0; i < q2.size(); i++) {       cout <<  1   << abs(q2[i].second) <<   U n ;       if (q2[i].first != 0) {         cout <<  1   << abs(q2[i].first) <<   L n ;       }       cout << 2 << endl;       if (q2[i].first != 0) {         cout <<  1   << abs(q2[i].first) <<   R n ;       }       cout <<  1   << abs(q2[i].second) <<   D n ;       cout << 3 << endl;     }     for (int i = 0; i < q3.size(); i++) {       cout <<  1   << abs(q3[i].first) <<   L n ;       if (q3[i].second != 0) {         cout <<  1   << abs(q3[i].second) <<   D n ;       }       cout << 2 << endl;       if (q3[i].second != 0) {         cout <<  1   << abs(q3[i].second) <<   U n ;       }       cout <<  1   << abs(q3[i].first) <<   R n ;       cout << 3 << endl;     }     for (int i = 0; i < q4.size(); i++) {       cout <<  1   << abs(q4[i].second) <<   D n ;       if (q4[i].first != 0) {         cout <<  1   << abs(q4[i].first) <<   R n ;       }       cout << 2 << endl;       if (q4[i].first != 0) {         cout <<  1   << abs(q4[i].first) <<   L n ;       }       cout <<  1   << abs(q4[i].second) <<   U n ;       cout << 3 << endl;     }     return 0;   }   