#include <iostream>
#include <cmath>
using namespace std;

int fairfield(int y, int m, int d){
  if(m == 1 || m == 2){
    y = y--;
    m = m + 12;
  }

  return 365 * y + y / 4 - y / 100 + y / 400 + 306 * (m + 1) / 10 + d - 428;
}

int main(){
  int y1, m1, d1, y2, m2, d2;

  while(cin >> y1 >> m1 >> d1 >> y2 >> m2 >> d2){
    if(y1 == -1) break;
    cout << fairfield(y2, m2, d2) - fairfield(y1, m1, d1) << endl;
  }
}