#include<stdio.h>
#include<time.h>

int main(void)
{
  while(1)
    {
      struct tm car[2]={};
      time_t tim[2];
      int judge=0;
      int i;
      
      for(i=0;i<2;i++)
	{
	  scanf("%d", &car[i].tm_year);
	  if(car[i].tm_year==-1)
	    judge=1;
	  scanf("%d", &car[i].tm_mon);
	  if(car[i].tm_mon==-1)
	    judge=1;
	  scanf("%d", &car[i].tm_mday);
	  if(car[i].tm_mday==-1)
	    judge=1;
	  car[i].tm_year-=1900;
	  car[i].tm_mon-=1;
	  tim[i]=mktime(&car[i]);
	}
      if(judge)break;

      printf("%ld\n",(tim[1]-tim[0])/86400);
    }

  return 0;
}