const
n= 7;
m= n div 2 + 1;
var
a: array[1..n,1..n]of integer;
function Rhomb(i,j: integer): integer;
begin
if Abs(i-m) if i=m then
Rhomb:= a[i,j]+Rhomb(i-1,j)+Rhomb(i+1,j)+Rhomb(i,j+1)
else
Rhomb:= a[i,j]+Rhomb(i+(i-m) div Abs(i-m),j)
else Rhomb:=0
end;
begin
{input a}
WriteLn('Rhomb Summ is: ',Rhomb(m,1));
ReadLn
end.