#include <bits/stdc++.h>
using namespace std;

#define endl '\n'

typedef long long ll;
typedef pair<int, int> pii;

int len;
vector<char> D;
vector<double> X;
vector<double> Y;

vector<double> TX;
vector<double> TY;

void Time(double t){
	for (int i = 0; i < len; ++i) {
		if (D[i] == 'R') TX[i] = X[i] + t;
		else if (D[i] == 'L') TX[i] = X[i] - t;
		else{
			if (D[i] == 'U') TY[i] = Y[i] + t;
			if (D[i] == 'D') TY[i] = Y[i] - t;
			TX[i] = X[i];
			continue;
		}
		TY[i] = Y[i];
	}
}

double Ma(vector<double> vector){
	double maxi = vector[0];
	for (int i = 1; i < len; ++i) {
		maxi = max(vector[i],maxi);
	}
	return maxi;
}

double Mi(vector<double> vector){
	double maxi = vector[0];
	for (int i = 1; i < len; ++i) {
		maxi = min(vector[i],maxi);
	}
	return maxi;
}

double Ternary(){
	double L = 0;
	double R = pow(10,16);
	for (int i = 0; i < 400; ++i) {
		double m1 = L + (R - L)/3;
		double m2 = R - (R - L)/3;
		Time(m1);
		double d1 = (Ma(TX) - Mi(TX)) * (Ma(TY) - Mi(TY));
		Time(m2);
		double d2 = (Ma(TX) - Mi(TX)) * (Ma(TY) - Mi(TY));
		if (d1 > d2) L = m1;
		else if (d2 > d1) R = m2;
		else{
			L = m1;
			R = m2;
		}
	}
	Time(L);
//	cout << L << endl;
//	for (int j = 0; j < len; ++j) {
//		cout << TX[j] << " " << TY[j] << endl;
//	}
//	cout << endl;
//    cout << Ma(TX) << " " << Mi(TX) << " " << Ma(TY) << " " << Mi(TY) << endl;
	return (Ma(TX) - Mi(TX)) * (Ma(TY) - Mi(TY));
}

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	
	cin >> len;
	D = vector<char>(len), X = vector<double>(len),Y = vector<double>(len),TX = vector<double>(len),TY = vector<double>(len);
	
	for (int i = 0; i < len; ++i) {
		cin >> X[i] >> Y[i] >> D[i];
	}
	
	cout << fixed << setprecision(12) << Ternary();
	
	return 0;
}