#include<iostream>
using namespace std;


int days[12]={31,28,31,30,31,30,31,31,30,31,30,31};
int calc(int y,int m,int d){
	int res=0;
	for(int i=1;i<y;i++){
		if(i%4==0&&(i%100||i%400==0))res+=366;
		else res += 365;
	}
	for(int i=1;i<m;i++){
		res += days[i-1];	
	}
	if(2<m && y%4==0&&(y%100||y%400==0))res++;
	return res+d-1;
}

int main(){
	int y1,m1,d1,y2,m2,d2;
	while(cin>>y1>>m1>>d1>>y2>>m2>>d2){
		cout<<calc(y2,m2,d2)-calc(y1,m1,d1)<<endl;
	}
	return 0;
}