fork(1) download
  1. s=str(input())
  2. s=s.strip()
  3. x=s.split()
  4. x=[i.lower() for i in x]
  5. x=[i.capitalize() for i in x]
  6. y=" ".join(x)
  7. print(y)
Success #stdin #stdout 0.03s 9752KB
stdin
dit   me may  
stdout
Dit Me May