val s=readLine print(s.tail.replaceAll(" (.)","$1 ")+s(0))