Max's submission of NINJA | CodeChef