quick n' dirty solutions for the qualification round