Create UVa 10167

Brute Force + Geometry