From 863c0f86979eae76ea391a0115b864ccf7d6c979 Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Fri, 13 May 2022 21:38:50 +0200 Subject: [PATCH] Autori --- autori.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 autori.py diff --git a/autori.py b/autori.py new file mode 100644 index 0000000..8455468 --- /dev/null +++ b/autori.py @@ -0,0 +1,13 @@ +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)