import java.io._
import java.util.StringTokenizer
import scala.util.control.Breaks.{breakable,break}
import scala.collection.mutable.{Map, Stack, Queue, PriorityQueue, Set}

case class Pos(x: Long, y: Long, dir: String) {

  // calc (x, y)
  def calc(t: Double): (Double, Double) = {
    dir match {
      case "R" => (x+t, y)
      case "L" => (x-t, y)
      case "U" => (x, y+t)
      case "D" => (x, y-t)
    }
  }
}

object Main extends App {
  val in = new InputReader(System.in)
  val pw = new PrintWriter(System.out)

  val N = in.next().toInt
  val p = new Array[Pos](N+1)

  for (i <- 1 to N) {
    val x, y = in.next().toLong
    val d = in.next()

    p(i) = Pos(x, y, d)
  }


  //
  def check(n: Double): Double = {
    import Math.{max, min}

    var xmax = -2e8
    var ymax = -2e8
    var xmin = 2e8
    var ymin = 2e8

    for (i <- 1 to N) {
      val (x, y) = p(i).calc(n)

      xmax = max(xmax, x)
      ymax = max(ymax, y)
      xmin = min(xmin, x)
      ymin = min(ymin, y)
    }

    (xmax - xmin) * (ymax - ymin)
  }

  // 下に凸のグラフの最小値
  def ternarySearch(small: Double, big: Double): Double = {
    val END = 5e-3 // 5e-9
    def func(small: Double, big: Double): Double = {
      val vol = (big - small) / 3
      val midl = small + vol
      val midr = small + vol * 2
      if (big - small < END) big
      else {
        if (check(midl) >= check(midr))
          func(midl, big)
        else
          func(small, midr)
      }
    }
    func(small, big)
  }

  def timeProc(time: Double): Double = (time * 10).round / 10.0
  
  val time = ternarySearch(0, 1e8)
  val ans = check(timeProc(time))

  println(ans)
}

object Sub {
  def print2DimArray[A](mat: Array[Array[A]]): Unit = {
    mat.foreach(lin => println(lin.deep))
  }
}

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