static void Main(string[] args) { Box firstBox = new Box(); Box secondBox = new Box(); firstBox.width = int.Parse(Console.ReadLine()); firstBox.height = int.Parse(Console.ReadLine()); firstBox.depth = int.Parse(Console.ReadLine()); secondBox.width = int.Parse(Console.ReadLine()); secondBox.height = int.Parse(Console.ReadLine()); secondBox.depth = int.Parse(Console.ReadLine()); if (firstBox.GetBoxVolume() < secondBox.GetBoxVolume()) { for (int i = 0; i < 6; i++) { if (firstBox.DoesFitInside(secondBox)) { firstBox.PrintBox(); Console.Write(" < "); secondBox.PrintBox(); Console.WriteLine(); } secondBox.Flip(); } } else if (firstBox.GetBoxVolume() > secondBox.GetBoxVolume()) { for (int i = 0; i < 6; i++) { if (secondBox.DoesFitInside(firstBox)) { secondBox.PrintBox(); Console.Write(" < "); firstBox.PrintBox(); Console.WriteLine(); } firstBox.Flip(); } } }