#include <iostream>
using namespace std;

int ytod( int year )
{
	bool leap = false;
	if( year % 4 == 0 ){
		if( year % 100 == 0 ){
			if( year % 400 == 0 ){
				leap = true;
			}
		}else{
			leap = true;
		}
	}

	return ( 365 + ( leap ? 1 : 0 ) );
}

int mtod( int month, int year )
{
	int monthes[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
	int ret = monthes[ month ];
	if( month == 2 ){
		ret += ( ytod( year ) == 365 ? 0 : 1 );
	}
	return ret;
}

int dateToSerial( int year, int month, int day )
{
	int serial = 0;
	year -= 1;
	serial = year * 365 + ( year / 4 - year / 100 + year / 400 );
	for( int i = 1; i < month; ++i ){
		serial += mtod( i, year + 1 );
	}
	serial += day;
	return serial;
}

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