#includeint main(){int y,m,d,d1,a[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; scanf("%d%d",&y,&d); d1=d; if(y%4==0&&y%100||y%400==0)a[2]++; for(m=1;d1>a[m];m++)d1-=a[m]; printf("The %dth day of %d is %d-%d-%d\n",d,y,y,m,d1); return 0;}