komachi's submission of Gears | CodeChef