import java.io.*;
import java.util.*;

public class Main {
	static final StdIn in = new StdIn();
	static final PrintWriter out = new PrintWriter(System.out);
	static final long A=2147483647;
	
	public static void main(String[] args) {
		int n=in.nextInt();
		long[] x = new long[n], y = new long[n];
		for(int i=0; i<n; ++i) {
			x[i]=in.nextInt()+A;
			y[i]=in.nextInt()+A;
			if(i>0&&(x[i]+y[i])%2!=(x[i-1]+y[i-1])%2) {
				System.out.println(-1);
				return;
			}
		}
		boolean al=false;
		if((x[0]+y[0])%2==0) {
			al=true;
			for(int i=0; i<n; ++i)
				++x[i];
		}
		out.println((31+(al?1:0)));
		for(int i=0; i<31; ++i)
			out.print((1L<<i)+" ");
		if(al)
			out.print(1);
		out.println();
		for(int i=0; i<n; ++i) {
//			System.out.println(x[i]+" "+y[i]);
			for(int j=0; j<31; ++j) {
				if(x[i]%(1L<<(j+1))==0) {
					y[i]-=1L<<j;
					if(j>29!=(x[i]%(1L<<(j+2))==y[i]%(1L<<(j+2)))) {
						out.print('R');
						x[i]-=1L<<(j+1);
					} else
						out.print('L');
				} else {
					x[i]-=1L<<j;
					if(j>29!=(y[i]%(1L<<(j+2))==x[i]%(1L<<(j+2)))) {
						out.print('U');
						y[i]-=1L<<(j+1);
					} else
						out.print('D');
				}
//				System.out.println(x[i]+" "+y[i]);
			}
//			if(x[i]!=0||y[i]!=0)
//				System.out.println("fk");
			if(al)
				out.print('L');
			out.println();
		}
		out.close();
	}
	
	static class StdIn {
		final private int BUFFER_SIZE = 1 << 16;
		private DataInputStream din;
		private byte[] buffer;
		private int bufferPointer, bytesRead;
		public StdIn() {
			din = new DataInputStream(System.in);
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}
		public StdIn(InputStream in) {
			try{
				din = new DataInputStream(in);
			} catch(Exception e) {
				throw new RuntimeException();
			}
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}
		public String next() {
			int c;
			while((c=read())!=-1&&(c==' '||c=='\n'||c=='\r'));
			StringBuilder s = new StringBuilder();
			while (c != -1)
			{
				if (c == ' ' || c == '\n'||c=='\r')
					break;
				s.append((char)c);
				c=read();
			}
			return s.toString();
		}
		public String nextLine() {
			int c;
			while((c=read())!=-1&&(c==' '||c=='\n'||c=='\r'));
			StringBuilder s = new StringBuilder();
			while (c != -1)
			{
				if (c == '\n'||c=='\r')
					break;
				s.append((char)c);
				c = read();
			}
			return s.toString();
		}
		public int nextInt() {
			int ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do
				ret = ret * 10 + c - '0';
			while ((c = read()) >= '0' && c <= '9');

			if (neg)
				return -ret;
			return ret;
		}
		public int[] readIntArray(int n, int os) {
			int[] ar = new int[n];
			for(int i=0; i<n; ++i)
				ar[i]=nextInt()+os;
			return ar;
		}
		public long nextLong() {
			long ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do
				ret = ret * 10 + c - '0';
			while ((c = read()) >= '0' && c <= '9');
			if (neg)
				return -ret;
			return ret;
		}
		public long[] readLongArray(int n, long os) {
			long[] ar = new long[n];
			for(int i=0; i<n; ++i)
				ar[i]=nextLong()+os;
			return ar;
		}
		public double nextDouble() {
			double ret = 0, div = 1;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do
				ret = ret * 10 + c - '0';
			while ((c = read()) >= '0' && c <= '9');
			if (c == '.')
				while ((c = read()) >= '0' && c <= '9')
					ret += (c - '0') / (div *= 10);
			if (neg)
				return -ret;
			return ret;
		}
		private void fillBuffer() throws IOException {
			bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
			if (bytesRead == -1)
				buffer[0] = -1;
		}
		private byte read() {
			try{
				if (bufferPointer == bytesRead)
					fillBuffer();
				return buffer[bufferPointer++];
			} catch(IOException e) {
				throw new RuntimeException();
			}
		}
		public void close() throws IOException {
			if (din == null)
				return;
			din.close();
		}
	}
}

Measured memory_bytes: 21716