#include <iostream>
using namespace std;

bool isLeap(int y){
	if(y % 4 != 0 || (y % 100 == 0 && y % 400 != 0))
		return false;
	return true;
}

int toDay(int y,int m,int d){
	int res = d;

	res += (y-1) * 365;
	for(int i=4;i<y;i+=4){
		if(isLeap(i)) res++;
	}

	for(int i=1;i<m;i++){
		switch(i){
		case 2:
			if(isLeap(y)) res += 29;
			else res += 28;
			break;
		case 4:
		case 6:
		case 9:
		case 12:
			res += 30;
			break;
		default:
			res += 31;
			break;
		}
	}

	return res;
}

int main(void){
	int y1,m1,d1,y2,m2,d2;

	while(cin>>y1>>m1>>d1>>y2>>m2>>d2 && y1!=-1){
		cout<<toDay(y2,m2,d2) - toDay(y1,m1,d1)<<endl;
	}

	return 0;
}