Uses crt;
var
i,a,s,min,z:integer; label 1;
begin
write('vvedite 4islo: ');
read(a);
s:=0;
min:=a mod 10;
while a>=1 do
begin
i:=a mod 10;
a:=a div 10;
if i>min then
s:=s+1;
if i=min then
z:=z+1;
min:=i;
end;
if z>1 then begin
write('ne verno');
goto 1;
end;
if (s>0) then
write('ne verno ')
else
write('4islo zapisano verno ');
1:read;
end.