#include <stdio.h>
int main ()
{
    int brithday;
    scanf("%d", &brithday);
    int year=brithday/10000;
    printf("year=%d\n",year);
    int month=brithday%10000/100;
    if(month>=10){
    printf("month=%d\n",month);
    }else{
    printf("month=0%d\n",month);
    }
    int date=brithday%100;
    if(date>=10){
    printf("date=%d\n",date);
    }else{
    printf("date=0%d\n",date);
    }
    return 0;
}