with Ada.Text_IO;

procedure Main is
   --  Two cube-shaped stacks of crates never restack as one cube.
   function No_Restack (A, B, C : Positive) return Boolean
     with Pre  => A <= 1000 and then B <= 1000 and then C <= 1000,
          Post => No_Restack'Result
   is
   begin
      return A * A * A + B * B * B /= C * C * C;
   end No_Restack;
begin
   if No_Restack (3, 4, 5) then
      Ada.Text_IO.Put_Line ("The crates stay in two stacks.");
   end if;
end Main;
