mdz's submission of FlatLand | CodeChef