Ugly problems often require ugly solutions. Solving an ugly problem in a pure manner is bloody hard.
or simply: