n=str(input())
a=n[:4]
b=n[4:6]
c=n[6:]
print("year="+a+"\n""month="+b+"\n""date="+c)