Ambesh Tiwari's submission of FlatLand | CodeChef