#include <bits/stdc++.h>
#define rep(i,l,n) for(int i=l;i<n;i++)
#define rer(i,l,n) for(int i=l;i<=n;i++)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int,int> pii;


int days(int y,int m,int d){
	if(m<=2){
		y--; m+=12;
	}
	return 365*y+y/4-y/100+y/400+306*(m+1)/10+d-429;
}

int main(){
	int y1,m1,d1,y2,m2,d2;
	while(1){
		cin>>y1>>m1>>d1>>y2>>m2>>d2;
		if(y1<0||m1<0||d1<0||y2<0||m2<0||d2<0) break;
		o(days(y2,m2,d2)-days(y1,m1,d1));
	}
}