for s in input().split("-"):
    print(s[0], end='')

07d44c70d8ef6f424166a3320af73c99767987ac
<mask token>

for s in input().split('-'):
    print(s[0], end='')

for s in input().split("-"):
    print(s[0], end='')
