Andrey Kim's submission of Matchsticks | CodeChef