#include <iostream>
#include <cstring>
#include <cstdlib>
#include <algorithm>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,b) FOR(i,0,b)
#define PB push_back
#define MP make_pair

static int GetDays(int y,int m,int d){
  if(m<=2){
    --y;
    m+=12;
  }
  int dy=365*(y-1);
  int c=y/100;
  int dl=(y>>2)-c+(c>>2);
  int dm=(m*979-1033)>>5;
  return dy+dl+dm+d-1;
}

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