#include <iostream>
#include <complex>
#include <sstream>
#include <string>
#include <algorithm>
#include <deque>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <vector>
#include <set>
#include <limits>
#include <cstdio>
#include <cctype>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <ctime>
using namespace std;
#define REP(i, j) for(int i = 0; i < (int)(j); ++i)
#define FOR(i, j, k) for(int i = (int)(j); i < (int)(k); ++i)
#define SORT(v) sort((v).begin(), (v).end())
#define REVERSE(v) reverse((v).begin(), (v).end())
typedef complex<double> P;

int pls[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 31, 30, 31};

int calc(int y, int m, int d){
  --y;
  int res = d + (y / 4 - y / 100 + y / 400);
  ++y;
  if((y / 4 && (!(y / 100) || y / 400)) && (m >= 3 || (m == 2 || d == 29))) ++res;
  res += y * 365;
  REP(i, m + 1) res += pls[i];
  return res;
}

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