#include <stdio.h>

int main() {
    int a, b,c;
    scanf("%4d%2d%2d",&a,&b,&c);
    printf("year=%4d\n",a);
    printf("month=%02d\n",b);
    printf("date=%02d\n",c);
}

格式控制在复习了解一下!