import re s=input() print(re.sub(' (.)','\\1 ',s[1:])+s[0])