using System;
using System.Collections.Generic;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using static System.Math;
using System.Numerics;
static class Program{
	const int mod=(int)1e9+7;
	static double[][] h;
	static void Main(){
		Sc sc=new Sc();
		var n=sc.I;
		var a=sc.Arr(n,(x)=>new Tuple<double,double,char>(double.Parse(x[0]),double.Parse(x[1]),x[2].ToCharArray()[0]));
		h=new double[][]{
			new double[]{double.MaxValue,double.MinValue},
			new double[]{double.MaxValue,double.MinValue},
			new double[]{double.MaxValue,double.MinValue},
			new double[]{double.MaxValue,double.MinValue},
			new double[]{double.MaxValue,double.MinValue},
			new double[]{double.MaxValue,double.MinValue}
		};
		for(int i = 0;i<n;i++) {
			if(a[i].Item3=='U'){
				h[0][0]=Min(h[0][0],a[i].Item2);
				h[0][1]=Max(h[0][1],a[i].Item2);
				h[5][0]=Min(h[5][0],a[i].Item1);
				h[5][1]=Max(h[5][1],a[i].Item1);
			}
			else if(a[i].Item3=='D'){
				h[1][0]=Min(h[1][0],a[i].Item2);
				h[1][1]=Max(h[1][1],a[i].Item2);
				h[5][0]=Min(h[5][0],a[i].Item1);
				h[5][1]=Max(h[5][1],a[i].Item1);
			}
			else if(a[i].Item3=='L'){
				h[2][0]=Min(h[2][0],a[i].Item1);
				h[2][1]=Max(h[2][1],a[i].Item1);
				h[4][0]=Min(h[4][0],a[i].Item2);
				h[4][1]=Max(h[4][1],a[i].Item2);
			}
			else{
				h[3][0]=Min(h[3][0],a[i].Item1);
				h[3][1]=Max(h[3][1],a[i].Item1);
				h[4][0]=Min(h[4][0],a[i].Item2);
				h[4][1]=Max(h[4][1],a[i].Item2);
			}
		}
		Console.WriteLine("{0}",Gss(0,300000000));
	}
	static readonly double phi=(1+Math.Sqrt(5))*0.5;
	static double Gss(double a,double b){
		DateTime st=DateTime.Now;
		double lb=a,ub=b,c1=0,c2=0,d1=0,d2=0;
		c1=(lb*phi+ub)/(1+phi);
		c2=(lb+phi*ub)/(1+phi);
		while(ub-lb>1e-11&&(DateTime.Now-st).TotalMilliseconds<1000){
			d1=Fu(c1);
			d2=Fu(c2);
			if(d1>d2){lb=c1;c1=c2;c2=(lb+phi*ub)/(1+phi);}
			else{ub=c2;c2=c1;c1=(lb*phi+ub)/(1+phi);}
		}
		return d1;
	}
	static double Fu(double i){
		return (Max(Max(h[0][1]+i,h[1][1]-i),h[4][1])-Min(Min(h[0][0]+i,h[1][0]-i),h[4][0]))*(Max(Max(h[2][1]-i,h[3][1]+i),h[5][1])-Min(Min(h[2][0]-i,h[3][0]+i),h[5][0]));
	}
}

public class Sc{
	public int I{get{return int.Parse(Console.ReadLine());}}
	public long L{get{return long.Parse(Console.ReadLine());}}
	public double D{get{return double.Parse(Console.ReadLine());}}
	public string S{get{return Console.ReadLine();}}
	public int[] Ia{get{return Array.ConvertAll(Console.ReadLine().Split(),int.Parse);}}
	public long[] La{get{return Array.ConvertAll(Console.ReadLine().Split(),long.Parse);}}
	public double[] Da{get{return Array.ConvertAll(Console.ReadLine().Split(),double.Parse);}}
	public string[] Sa{get{return Console.ReadLine().Split();}}
	public object[] Oa{get{return Console.ReadLine().Split();}}
	public int[] Ia2(int b){return Array.ConvertAll(("0 "+Console.ReadLine()+" 0").Split(),int.Parse);}
	public int[] Ia3(int a,int b){return Array.ConvertAll(((a!=0?b.ToString()+" ":"")+Console.ReadLine()).Split(),int.Parse);}
	public int[] Ia3(int a,int b,int c,int d){return Array.ConvertAll(((a!=0?b.ToString()+" ":"")+Console.ReadLine()+(c!=0?" "+d.ToString():"")).Split(),int.Parse);}
	public long[] La2(int b){return Array.ConvertAll(("0 "+Console.ReadLine()+" 0").Split(),long.Parse);}
	public long[] La3(int a,int b){return Array.ConvertAll(((a!=0?b.ToString()+" ":"")+Console.ReadLine()).Split(),long.Parse);}
	public long[] La3(int a,int b,int c,int d){return Array.ConvertAll(((a!=0?b.ToString()+" ":"")+Console.ReadLine()+(c!=0?" "+d.ToString():"")).Split(),long.Parse);}
	public T[] Arr<T>(int n,Func<T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f();}return a;}
	public T[] Arr<T>(int n,Func<int,T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(i);}return a;}
	public T[] Arr<T>(int n,Func<string[],T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(Console.ReadLine().Split());}return a;}
	public T[] Arr<T>(int n,Func<int,string[],T> f){var a=new T[n];for(int i=0;i<n;i++){a[i]=f(i,Console.ReadLine().Split());}return a;}
}

Measured memory_bytes: 22336