Skip to content

Instantly share code, notes, and snippets.

@mikl745
Created April 10, 2017 19:38
Show Gist options
  • Save mikl745/1352020054e06fe972de70092495a98a to your computer and use it in GitHub Desktop.
Save mikl745/1352020054e06fe972de70092495a98a to your computer and use it in GitHub Desktop.
n = list(input().split())
o = []
for i in range(len(n)):
tutu = str(n[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]
if n[t] == ".":
print(r-1)
print(n[t - 1], n[t])
else:
print(r)
print(n[t-1],n[t])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment