function C=mnozi_dva(S, n);


m=length(S);

if mod(m,2)>0
    S=[S 1];
end;

C=[];
for i=1:2:m
    C=[C mod(S(i)*S(i+1), n)];
end;

