Andrey's submission of Far Graphs | CodeChef