American usually use day-month-year, but Chinese often use year-month-day. Please write a program to transfer the date from American style to Chinese style.
Input format:
mm-dd-yyyy
Output format:
yyyy-mm-dd
Input sample:
06-08-2017
Output sample:
2017-06-08
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%02d-%02d-%04d",&a,&b,&c);
printf("%04d-%02d-%02d",c,a,b);
}