#include<iostream>
using namespace std;
int Q(int y,int m,int d) {
  if (m==1||m==2){--y;m+=12;}
   return 365*y+y/4-y/100+y/400+(306*(m+1))/10+d-428;
}
int main(){
  int a,b,c,d,e,f,g;
  while(cin>>a>>b>>c>>d>>e>>f){
    cout<<Q(d,e,f)-Q(a,b,c)<<endl;
  }
}