import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val n = sc.nextInt
  val xys = Seq.fill(n)((sc.nextInt, sc.nextInt))

  if (xys.map {
    case (x, y) => Math.abs((x + y) % 2)
  }.distinct.size != 1) {
    println(-1)
  } else {
    val len = xys.map { case (x, y) => x + y }.max
    println(len)
    println(Seq.fill(len)(1).mkString(" "))
    xys.foreach { case (x, y) =>
      val l = Seq.fill(-x max 0)("L").mkString
      val r = Seq.fill(x max 0)("R").mkString
      val d = Seq.fill(-y max 0)("D").mkString
      val u = Seq.fill(y max 0)("U").mkString
      val o = Seq.fill((len - Math.abs(x) - Math.abs(y)) / 2)("LR").mkString
      println(s"$l$r$d$u$o")
    }
  }

}