import java.io._
import java.util.StringTokenizer
import scala.util.control.Breaks.{breakable,break}

object Main extends App {
  type Coord = (Int, Int)

  val in = new InputReader(System.in)
  val pw = new PrintWriter(System.out)

  val N = in.next().toInt

  val P = new Array[Coord](N+1)
  val hoge = new Array[Int](N)
  for(i <- 1 to N) {
    val x, y = in.next().toInt
    P(i) = (x, y)
    hoge(i-1) = (x + y) % 2
  }

  val fuga = hoge.count(_ == 0)
  if (fuga != 0 && fuga != N) {
    println(-1)
  }
  else if (fuga == 0) { // odd
    val m = 19
    val one = Array.fill[Int](m)(1).mkString(" ")
    pw.println(m)
    pw.println(one)

    //
    for (i <- 1 to N) {
      val (x, y) = P(i)
      val tmp = x.abs + y.abs
      val tmp2 = m - tmp

      var ans = "RL"*(tmp2/2)
      if (x > 0)
        ans += "R"*x
      else
        ans += "L"*x.abs

      if (y > 0)
        ans += "U"*y
      else
        ans += "D"*y.abs

      pw.println(ans)
    }

    pw.flush()


  }
  else if (fuga == N) { // even
    val m = 20
    val one = Array.fill[Int](20)(1).mkString(" ")
    pw.println(m)
    pw.println(one)

    //
    for (i <- 1 to N) {
      val (x, y) = P(i)
      val tmp = x.abs + y.abs
      val tmp2 = m - tmp

      var ans = "RL"*(tmp2/2)
      if (x > 0)
        ans += "R"*x
      else
        ans += "L"*x.abs

      if (y > 0)
        ans += "U"*y
      else
        ans += "D"*y.abs

      pw.println(ans)
    }

    pw.flush()

  }
}


class InputReader(stream: InputStream) {
  private val reader = new BufferedReader(new InputStreamReader(stream))
  private var tokenizer: StringTokenizer = new StringTokenizer(reader.readLine())
  def next(): String = {
    while (!tokenizer.hasMoreTokens()) {
      tokenizer = new StringTokenizer(reader.readLine())
    }
    tokenizer.nextToken()
  }
}
