#include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
const ld eps = 1e-9;

/*--- year??´month???day??\????????\????±??????? ---*/
tm dayofweek(int year, int month, int day)
{
	struct tm  t;

	t.tm_year = year - 1900;    /* ??´????????´ */
	t.tm_mon = month - 1;        /* ???????????´ */
	t.tm_mday = day;            /* ??\ */
	t.tm_hour = 0;                /* ??? */
	t.tm_min = 0;                /* ??? */
	t.tm_sec = 0;                /* ?§? */
	t.tm_isdst = -1;            /* ????????? */

	return t;
}
int main() {
	while (1) {
		int y1, m1, d1, y2, m2, d2; cin >> y1 >> m1 >> d1 >> y2 >>m2>> d2;
		if (y1 == -1)break;
		tm a = dayofweek(y1, m1, d1);
		tm b = dayofweek(y2, m2, d2);
		double diff = difftime(mktime(&b),mktime(&a));
		cout << int(diff / 60 / 60 / 24 + 0.5) << endl;
	}
	return 0;
}