Skip to content

Instantly share code, notes, and snippets.

@mikl745
Created April 10, 2017 20:56
Show Gist options
  • Save mikl745/89c70c6ced318074040429e634e41ae4 to your computer and use it in GitHub Desktop.
Save mikl745/89c70c6ced318074040429e634e41ae4 to your computer and use it in GitHub Desktop.
i = input()
stroka = i[0:-1].split()
o = []
for i in range(len(stroka)):
tutu = str(stroka[i])
o.append(len(tutu))
r = o[0] + o[1]
for t in range(1,len(o)):
if r >= o[t] + o[t - 1]:
r = o[t] + o[t - 1]
print(r)
print(stroka[i-1],stroka[i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment