using System;
using System.Text;

public class Program
{
    private int N;
    private int[] X, Y;

    public void Solve()
    {
        var sc = new Scanner();
        N = sc.NextInt();
        X = new int[N];
        Y = new int[N];
        for (int i = 0; i < N; i++)
        {
            X[i] = sc.NextInt();
            Y[i] = sc.NextInt();
        }

        int tmp = Math.Abs(X[0] + Y[0]) % 2;
        for (int i = 1; i < N; i++)
        {
            int t = Math.Abs(X[i] + Y[i]) % 2;
            if (tmp != t)
            {
                Console.WriteLine(-1);
                return;
            }
        }

        int m = 31 + (tmp == 0 ? 1 : 0);
        long[] arm = new long[m];
        arm[0] = 1;
        for (int i = 1; i <= 30; i++)
        {
            arm[i] = arm[i - 1] * 2;
        }

        if (tmp == 0)
            arm[31] = 1;

        // U=X+Y
        // V=X-Y
        
        // U U+d V-d
        // D U-d V+d
        // L U-d V-d
        // R U+d V+d

        string s = "LUDR";
        
        StringBuilder sb = new StringBuilder();
        sb.AppendLine(m.ToString());
        sb.AppendLine(string.Join(" ", arm));
        for (int i = 0; i < N; i++)
        {
            long u = X[i] + Y[i];
            long v = X[i] - Y[i];
            if (tmp == 0)
            {
                u--;
                v--;
            }

            u += int.MaxValue;
            v += int.MaxValue;
            
            char[] line = new char[m];
            if (tmp == 0)
                line[31] = 'R';
            for (int j = 1; j <= 31; j++)
            {
                long bit = 1L << j;
                int a = 0;
                if ((u & bit) > 0) a += 1;
                if ((v & bit) > 0) a += 2;
                line[j - 1] = s[a];
            }
            sb.AppendLine(new string(line));
        }
        
        Console.WriteLine(sb.ToString());
    }


    public static void Main(string[] args)
    {
        new Program().Solve();
    }
}

class Scanner
{
    public Scanner()
    {
        _pos = 0;
        _line = new string[0];
    }

    const char Separator = ' ';
    private int _pos;
    private string[] _line;

    #region スペース区切りで取得

    public string Next()
    {
        if (_pos >= _line.Length)
        {
            _line = Console.ReadLine().Split(Separator);
            _pos = 0;
        }

        return _line[_pos++];
    }

    public int NextInt()
    {
        return int.Parse(Next());
    }

    public long NextLong()
    {
        return long.Parse(Next());
    }

    public double NextDouble()
    {
        return double.Parse(Next());
    }

    #endregion

    #region 型変換

    private int[] ToIntArray(string[] array)
    {
        var result = new int[array.Length];
        for (int i = 0; i < array.Length; i++)
        {
            result[i] = int.Parse(array[i]);
        }

        return result;
    }

    private long[] ToLongArray(string[] array)
    {
        var result = new long[array.Length];
        for (int i = 0; i < array.Length; i++)
        {
            result[i] = long.Parse(array[i]);
        }

        return result;
    }

    private double[] ToDoubleArray(string[] array)
    {
        var result = new double[array.Length];
        for (int i = 0; i < array.Length; i++)
        {
            result[i] = double.Parse(array[i]);
        }

        return result;
    }

    #endregion

    #region 配列取得

    public string[] Array()
    {
        if (_pos >= _line.Length)
            _line = Console.ReadLine().Split(Separator);

        _pos = _line.Length;
        return _line;
    }

    public int[] IntArray()
    {
        return ToIntArray(Array());
    }

    public long[] LongArray()
    {
        return ToLongArray(Array());
    }

    public double[] DoubleArray()
    {
        return ToDoubleArray(Array());
    }

    #endregion
}

Measured memory_bytes: 13328