#include <iostream>
using namespace std;

bool isleap(int y) {
    if(y%4 != 0) return false;
    if(y%400 == 0) return true;
    return y%100 != 0;
}

int dc(int y,int m,int d) {
    int res = 0;
    for(int i=1; i<y; ++i) res += 365 + isleap(i);
    for(int i=1; i<m; ++i) {
        res += 31;
        if(i == 4 || i == 6 || i == 9 || i == 11) res--;
        if(i == 2) res -= 3 + isleap(y);
    }
    res += d;
    return res;
}

int main() {
    int y1,y2,m1,m2,d1,d2;
    while(cin>>y1>>m1>>d1>>y2>>m2>>d2) {
        if(y1 == -1 && y2 == -1) break;

        cout<<dc(y2,m2,d2)-dc(y1,m1,d1)<<endl;
    }
}