Files
kattis/autori.py
2022-05-13 21:38:50 +02:00

14 lines
251 B
Python

import sys
strin = sys.stdin.readline() # type: str
ans = strin[0:1]
pos = 0
while strin.find('-', pos) > 0:
# sys.stderr.writelines('{}\n'.format(pos))
pos = strin.find('-', pos) + 1
ans += strin[pos:pos + 1]
print(ans)