#include <stdio.h>

int main(void)
{
    int Data,Year,Month,Date;
    scanf("%d",&Data);
    Date=Data%100;
    Data/=100;
    Month=Data%100;
    Data/=100;
    Year=Data;
    printf("year=%04d\n",Year);
    printf("month=%02d\n",Month);
    printf("date=%02d\n",Date);
}