#![allow(unused_imports)]
#![allow(non_snake_case)]
use std::cmp::*;
use std::collections::*;
use std::io::Write;

#[allow(unused_macros)]
macro_rules! debug {
    ($($e:expr),*) => {
        #[cfg(debug_assertions)]
        $({
            let (e, mut err) = (stringify!($e), std::io::stderr());
            writeln!(err, "{} = {:?}", e, $e).unwrap()
        })*
    };
}

struct Solver1D {
    l: [i64; 3],
    r: [i64; 3],
}

const INF: i64 = 100000_00000;

impl Solver1D {
    fn new() -> Solver1D {
        let l = [INF; 3];
        let r = [-INF; 3];
        Solver1D { l: l, r: r }
    }

    fn add(&mut self, coord: i64, idx: usize) {
        self.l[idx] = min(self.l[idx], coord);
        self.r[idx] = max(self.r[idx], coord);
    }

    fn calc_width(&self, t: f64) -> f64 {
        let mut left = std::f64::MAX;
        for i in 0..3 {
            let v = i as f64 - 1.0;
            left = fmin(left, self.l[i] as f64 + v * t);
        }
        let mut right = -std::f64::MAX;
        for i in 0..3 {
            let v = i as f64 - 1.0;
            right = fmax(right, self.r[i] as f64 + v * t);
        }
        right - left
    }

    fn get_events(&self) -> Vec<f64> {
        let mut events = vec![];
        for lr in &[self.l, self.r] {
            for i in 0..3 {
                if lr[i].abs() == INF {
                    continue;
                }
                for j in 0..i {
                    if lr[j].abs() == INF {
                        continue;
                    }
                    let event = -(lr[i] - lr[j]) as f64 / (i as f64 - j as f64);
                    if event > 0.0 {
                        events.push(event);
                    }
                }
            }
        }
        events
    }
}

fn main() {
    let n = read::<usize>();

    let mut lr_solver = Solver1D::new();
    let mut ud_solver = Solver1D::new();

    for _ in 0..n {
        let v = read_vec::<String>();
        let x = i64::from_str_radix(&v[0], 10).unwrap();
        let y = i64::from_str_radix(&v[1], 10).unwrap();
        if v[2] == "R" {
            lr_solver.add(x, 2);
            ud_solver.add(y, 1);
        } else if v[2] == "L" {
            lr_solver.add(x, 0);
            ud_solver.add(y, 1);
        } else if v[2] == "U" {
            lr_solver.add(x, 1);
            ud_solver.add(y, 2);
        } else {
            lr_solver.add(x, 1);
            ud_solver.add(y, 0);
        }
    }
    let mut events = vec![0.0, 1e9];
    events.append(&mut lr_solver.get_events());
    events.append(&mut ud_solver.get_events());

    let mut ans = std::f64::MAX;
    for t in events {
        let temp = lr_solver.calc_width(t) * ud_solver.calc_width(t);
        ans = fmin(ans, temp);
    }
    println!("{0:.10}", ans);
}

fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse().ok().unwrap()
}

fn read_vec<T: std::str::FromStr>() -> Vec<T> {
    read::<String>()
        .split_whitespace()
        .map(|e| e.parse().ok().unwrap())
        .collect()
}

#[derive(PartialEq, PartialOrd)]
pub struct Total<T>(pub T);

impl<T: PartialEq> Eq for Total<T> {}

impl<T: PartialOrd> Ord for Total<T> {
    fn cmp(&self, other: &Total<T>) -> std::cmp::Ordering {
        self.0.partial_cmp(&other.0).unwrap()
    }
}

fn fmin(a: f64, b: f64) -> f64 {
    min(Total(a), Total(b)).0
}

fn fmax(a: f64, b: f64) -> f64 {
    max(Total(a), Total(b)).0
}


Measured memory_bytes: 4352