// https://atcoder.jp/contests/arc103/tasks/arc103_b
//
#![allow(unused_imports)]
use std::io::*;
use std::fmt::*;
use std::str::*;
use std::cmp::*;
use std::collections::*;

macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
    ($($r:tt)*) => {
        let s = {
            use std::io::Read;
            let mut s = String::new();
            std::io::stdin().read_to_string(&mut s).unwrap();
            s
        };
        let mut iter = s.split_whitespace();
        input_inner!{iter, $($r)*}
    };
}

macro_rules! input_inner {
    ($iter:expr) => {};
    ($iter:expr, ) => {};

    ($iter:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($iter, $t);
        input_inner!{$iter $($r)*}
    };
}

macro_rules! read_value {
    ($iter:expr, ( $($t:tt),* )) => {
        ( $(read_value!($iter, $t)),* )
    };

    ($iter:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
    };

    ($iter:expr, [ next / $t:tt ]) => {
        {
            let len = read_value!($iter, usize);
            (0..len).map(|_| read_value!($iter, $t)).collect::<Vec<_>>()
        }
    };

    ($iter:expr, chars) => {
        read_value!($iter, String).chars().collect::<Vec<char>>()
    };

    ($iter:expr, usize1) => {
        read_value!($iter, usize) - 1
    };

    ($iter:expr, $t:ty) => {
        $iter.next().unwrap().parse::<$t>().expect("Parse error")
    };
}

#[allow(unused_macros)]
macro_rules! dvec {
    ($t:expr ; $len:expr) => {
        vec![$t; $len]
    };

    ($t:expr ; $len:expr, $($rest:expr),*) => {
        vec![dvec!($t; $($rest),*); $len]
    };
}

#[allow(unused_macros)]
macro_rules! ifv {
    ($t:expr, $a:expr, $b: expr) => {
        if $t { $a } else { $b }
    }
}

#[allow(unused_macros)]
macro_rules! fill {
    ($t:expr, $v:expr) => {
        for i in 0..$t.len() {
            $t[i] = $v;
        }
    };
}

#[allow(unused_macros)]
macro_rules! debug {
    ($($a:expr),*) => {
        println!(concat!($(stringify!($a), " = {:?}, "),*), $($a),*);
    }
}

fn doit(a: &Vec<i64>, mut x: i64, mut y: i64)  {
    let n = a.len();
    let mut dirs = vec![' '; n];
    let dx = vec![0, -1, 0, 1];
    let dy = vec![1, 0, -1, 0];
    let dc = vec!['D', 'R', 'U', 'L'];
    for i in 0..n {
        let d = a[i];

        let mut best = (x.abs()+y.abs()+d*2, x, y, 4);
        for j in 0..4 {
            let tx = x + d * dx[j];
            let ty = y + d * dy[j];
            let to_dist = tx.abs() + ty.abs();
            if to_dist < best.0 {
                best = (to_dist, tx, ty, j);
            }
        }
        x = best.1;
        y = best.2;
        dirs[n-1-i] = dc[best.3];
    }

    assert!(x == 0 && y == 0);

    for i in 0..n {
        print!("{}", dirs[i]);
    }
    println!("");
}

fn main() {
    input! {
        n: usize,
        points: [(i64, i64); n]
    };

    let mut parity = vec![0, 0];
    for i in 0..n {
        let x = points[i].0;
        let y = points[i].1;
        parity[((x.abs() + y.abs()) % 2) as usize] += 1;
    }
    if parity[0] != n && parity[1] != n {
        println!("-1");
        return;
    }

    let mut a = vec![];
    for d in 0..32 {
        a.push(1<<d);
    }
    a.reverse();
    if parity[0] == n {
        a.push(1);
    }
    let mut w = a.clone();
    w.sort();
    println!("{}", w.len());
    println!("{}", w.into_iter().map(|x| x.to_string()).collect::<Vec<_>>().join(" "));

    for p in points {
        doit(&a, p.0, p.1)
    }

    // let mut total = 0;
    // let mut wok = 0;
    // for y in -10..10 {
    //     for x in -10..10 {
    //         let ok = doit(&a, x, y);
    //         debug!(x, y, ok);
    //         total += 1;
    //         if ok {
    //             wok += 1;
    //         }
    //     }
    // }
    // debug!(total, wok);
}


Measured memory_bytes: 4352