#include<stdio.h> int main() { /* int x, y, z; scanf("%4d%2d%2d",&x,&y,&z);
printf("year=%d\n", x);
printf("month=%02d\n", y);
printf("date=%02d\n", z);
*/
int a, x, y, z;
scanf("%d", &a);
x = a / 10000;
y = a % 10000 / 100;
z = a % 100;
printf("year=%d\n", x);
printf("month=%02d\n", y);
printf("date=%02d\n", z);
}