2 a
:array [0..26] of longint;
3 s
,t
,w
,i
,j
,k
,p
,q
:longint;
12 a
[i
]:=ord(ch
)-ord('a')-s
+2;
17 while (j
>0) and (a
[j
]=t
-w
+j
) do dec(j
);
20 for k
:=j
+1 to w
do a
[k
]:=a
[j
]+k
-j
;
21 for k
:=1 to w
do write(chr(ord('a')+a
[k
]+s
-2));