uses crt;
var st:string;
d,i:integer;
begin
clrscr;
{---------------------------cau-a---------------------------}
write('nhap xau:'); readln(st);
{---------------------------cau-b---------------------------}
d:=length(st);
for i:=1 to d do
st[i]:=upcase(st[i]);
for i:=1 to d do
write(st[i]);
{--------------------------cau-c----------------------------}
writeln;
while pos(' ',st)>0 do
delete(st,pos(' ',st),1);
if st[1]=' 'then delete(st,1,1);
if st[d]=' 'then delete(st,d,1);
writeln('xau sau khi bien doi la: ',st);
readln;
end.