import sys
import functools
name = sys.stdin.readline()
c = [str(f) for f in name if f == f.upper() and f != ' ' and f != '\n' and 
    f != '-']
sys.stdout.write(functools.reduce(lambda x, y: x + y, c))

445a148427c87197526dd7f996734e808a501022
<mask token>

<mask token>
sys.stdout.write(functools.reduce(lambda x, y: x + y, c))

<mask token>
name = sys.stdin.readline()
c = [str(f) for f in name if f == f.upper() and f != ' ' and f != '\n' and 
    f != '-']
sys.stdout.write(functools.reduce(lambda x, y: x + y, c))

import sys
import functools
name = sys.stdin.readline()
c = [str(f) for f in name if f == f.upper() and f != ' ' and f != '\n' and 
    f != '-']
sys.stdout.write(functools.reduce(lambda x, y: x + y, c))
