d,y,m = input().split() print( "{}-{}-{}".format(m,d,y))
------Input------ 30-2016-7 ------Answer----- 7-30-2016 ------Your output-----