with Ada.Text_IO;
procedure Main is
   type Quad is array (1 .. 4) of Integer;
   type Vector is array (Positive range <>) of Integer;
   type Pair is array (1 .. 2) of Integer;
   Q : constant Quad := 1 & 2 & 3 & 4;
   P : constant Pair := (5, 6);
   V : constant Vector := (7, 8, 9);
   W : constant Vector := V & 10 & V (1 .. 2);
   function Sum (X : Vector) return Integer is
      S : Integer := 0;
   begin
      for E of X loop
         pragma Loop_Invariant (S in -1000 .. 1000);
         if E in -10 .. 10 and then S in -990 .. 990 then
            S := S + E;
         end if;
      end loop;
      return S;
   end Sum;
begin
   Ada.Text_IO.Put_Line (Integer'Image (Q (3)) & Integer'Image (W'Length) & Integer'Image (W (6)) & Integer'Image (Sum (W)) & Integer'Image (P (2)));
end Main;
