7 lines
145 B
Python
7 lines
145 B
Python
s = input()
|
|
wordlen = len(s) // 3
|
|
s1 = s[:wordlen]
|
|
s2 = s[wordlen : wordlen * 2]
|
|
s3 = s[wordlen * 2 :]
|
|
print(s1 if s1 == s2 or s1 == s3 else s2)
|