Var S:string;
i:integer;
Begin
WriteLn('Введи строку');
ReadLn(S);
For i:= 1 to Length(S) do
Case S[i] of
'a':Begin S[i]:='e'; Write(i,' ') end;
'A':Begin S[i]:='E'; Write(i,' ') end;
'i':S[i]:='g';
end;
Insert('+',S,trunc(Length(S)/2));
WriteLn;
WriteLn(S);
End.