Program HOC24;
var s: string;
i: byte;
begin
write('Nhap xau S: '); readln(s);
write('Cac chu cai in hoa: ');
for i:=1 to length(s) do if s[i] in ['A'..'Z'] then write(s[i],' ');
writeln;
for i:=1 to length(s) do if s[i] in ['a'..'z'] then write(s[i],' ');
readln
end.