Const g=['й','ц','к','н','г','ш','щ','з','х','ф','в','п','р','л','д','ж','ч','с','м','т','б','Й','Ц','К','Н','Ш','Щ','З','Х','Ф','В','П','Р','Л','Д','Ж','Ч','С','М','Т','Б']; var str: string;i: byte; begin readln(str); for i:=1 to length(str) do begin if str[i] in g then writeln (str[i]); end; end.