#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

const ll MOD = 1e9+7;

signed main()
{
    ll n;
    cin >> n;

    string s = "LUDR";
    vector<ll> x(n);
    vector<ll> y(n);
    for(ll i = 0; i < n; ++i)
        cin >> x[i] >> y[i];
    bool flag = abs(x[0] + y[0]) % 2;
    for(ll i = 1; i < n; ++i){
        if(abs(x[i] + y[i]) % 2 != flag){
            cout << -1 << endl;
            return 0;
        }
    }
    cout << (flag ? 36 : 37) << endl;
    if(!flag)
        cout << "1 ";
    for(ll i = 0; i < 36; ++i)
        cout << (1LL << i) << (i == 35 ? "\n" : " ");

    for(ll i = 0; i < n; ++i){
        if(!flag){
            cout << "R";
            x[i]--;
        }

        ll u = x[i] + y[i];
        ll v = x[i] - y[i];
        ll ua = abs(u) >> 1;
        ll va = abs(v) >> 1;
        ua |= (1LL << 35);
        va |= (1LL << 35);
        if(u < 0)
            ua = ~ua;
        if(v < 0)
            va = ~va;
        for(ll j = 0; j < 36; ++j){
            ll ind = ((ua & (1LL << j)) >> j) + (((va & (1LL << j)) >> j) << 1LL);
            cout << s[ind];
        }
        cout << endl;
    }

}
