program consonants;
function consonant_counter( s: string ) : string ;
const letters = [ 'A' .. 'Z' ] ;
const vowels = [ 'A' , 'E' , 'I' , 'O' , 'U' ] ;
var counter: array [ 'A' .. 'Z' ] of integer ;
i, len: integer ;
c: char ;
begin
s: = UpCase( s) ;
len: = Length( s) ;
for c: = 'A' to 'Z' do begin
counter[ c] : = 0 ;
end ;
for i: = 1 to len do begin
if ( s[ i] in letters) and not ( s[ i] in vowels) then begin
inc( counter[ s[ i] ] ) ;
end ;
end ;
consonant_counter: = '' ;
for c: = 'A' to 'Z' do begin
if counter[ c] = 1 then begin
consonant_counter : = consonant_counter + c;
end ;
end ;
end ;
var s;
begin
readln ( s) ;
writeln ( consonant_counter( s) ) ;
end .
cHJvZ3JhbSBjb25zb25hbnRzOwoKZnVuY3Rpb24gY29uc29uYW50X2NvdW50ZXIoczpzdHJpbmcpOnN0cmluZzsKY29uc3QgbGV0dGVycyA9IFsnQScuLidaJ107CmNvbnN0IHZvd2VscyA9IFsnQScsJ0UnLCdJJywnTycsJ1UnXTsKdmFyIGNvdW50ZXI6YXJyYXlbJ0EnLi4nWiddIG9mIGludGVnZXI7CglpLCBsZW46aW50ZWdlcjsKCWM6Y2hhcjsKYmVnaW4KCXM6PVVwQ2FzZShzKTsKCWxlbjo9TGVuZ3RoKHMpOwoJZm9yIGM6PSdBJyB0byAnWicgZG8gYmVnaW4KCQljb3VudGVyW2NdOj0wOwoJZW5kOwoJCglmb3IgaTo9MSB0byBsZW4gZG8gYmVnaW4KCQlpZiAoc1tpXSBpbiBsZXR0ZXJzKSBhbmQgbm90IChzW2ldIGluIHZvd2VscykgdGhlbiBiZWdpbgoJCQlpbmMoY291bnRlcltzW2ldXSk7CgkJZW5kOwoJZW5kOwoJCgljb25zb25hbnRfY291bnRlcjo9Jyc7Cglmb3IgYzo9J0EnIHRvICdaJyBkbyBiZWdpbgoJCWlmIGNvdW50ZXJbY10gPSAxIHRoZW4gYmVnaW4KCQkJY29uc29uYW50X2NvdW50ZXIgOj0gY29uc29uYW50X2NvdW50ZXIgKyBjOwoJCWVuZDsKCWVuZDsKZW5kOwoKdmFyIHM7CgpiZWdpbgoJcmVhZGxuKHMpOwoJd3JpdGVsbihjb25zb25hbnRfY291bnRlcihzKSk7CmVuZC4=
compilation info
Free Pascal Compiler version 3.0.0+dfsg-10 [2016/12/12] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling prog.pas
prog.pas(30,6) Fatal: Syntax error, ":" expected but ";" found
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
stdout