#include <stdio.h>

int main() {
    int a,b,c,d,e,f;
    scanf("%d-%d",&a,&b);
    c=a/10000;
    d=(a%10000)/100;
    e=a%100;
    f=b/1000000;
    printf("%d %d %d %d",c,d,e,f);
    if(f<3)
    {
        printf("19%d",c);
    }
    else
    {
        printf("20%d",c);
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: