include [HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int month[13]= {0,31,28,31,30,31,30,31,31,30,31,30,31};
int y1,m1,d1;
int x,y,z;
int main()
{
scanf(“%d/%d/%d”,&x,&y,&z);
//年月日
//月日年
//日月年
y1=1960,m1=1,d1=1;
while(y1!=2059||m1!=12||d1!=31)
{
if((y1%4==0&&y1%100!=0)||y%400==0)
month[2]=29;
else
month[2]=28;
if((x+1900==y1&&y==m1&&z==d1)||(x+2000==y1&&y==m1&&z==d1)||(x==m1&&y==d1&&z+1900==y1)||(x==m1&&y==d1&&z+2000==y1)||(x==d1&&y==m1&&z+1900==y1)||(x==d1&&y==m1&&z+2000==y1))
{
printf(“%d-%.2d-%.2d\n”,y1,m1,d1);
}
d1;
if(d1>month[m1])
{
d1=1;
m1;
}
if(m1>12)
{
y1++;
m1=1;
}
}
return 0;
}