s=input().split("-") c=int(s[2]) a=int(s[0]) b=int(s[1]) print(c,a,b,sep="-")
------Input------ 15350 ------Answer----- 05351------Your output-----