M=[0,31,28,31,30,31,30,31,31,30,31,30]

def L(y,m):

  if m<=2: y-=1

  return y/4-y/100+y/400+sum(M[:m])

while 1:

  x=list(map(int,input().split(" ")))

  if x==[-1]*6: break

  a,b,c,d,e,f=x

  print((d-a)*365+f-c+L(d,e)-L(a,b))
M=[0,1,-1,0,0,1,1,2,3,3,4,4]

def L(y,m):

  if m<=2: y-=1

  return y/4-y/100+y/400+M[m-1]



while 1:

  a,b,c,d,e,f=x=list(map(int,input().split(" ")))

  if any([i<0 for i in x]): break

  ans=(d-a)*365+(e-b)*30+f-c+L(d,e)-L(a,b)

  print(ans)
M = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30]


def L(y, m):
    if m <= 2:
        y -= 1
    return y / 4 - y / 100 + y / 400 + sum(M[:m])


while 1:
    x = list(map(int, input().split(" ")))
    if x == [-1] * 6:
        break
    a, b, c, d, e, f = x
    print((d - a) * 365 + f - c + L(d, e) - L(a, b))

M = [0, 1, -1, 0, 0, 1, 1, 2, 3, 3, 4, 4]


def L(y, m):
    if m <= 2:
        y -= 1
    return y / 4 - y / 100 + y / 400 + M[m - 1]


while 1:
    a, b, c, d, e, f = x = list(map(int, input().split(" ")))
    if any([i < 0 for i in x]):
        break
    ans = (d - a) * 365 + (e - b) * 30 + f - c + L(d, e) - L(a, b)
    print(ans)

-M = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30] +M = [0, 1, -1, 0, 0, 1, 1, 2, 3, 3, 4, 4] -    return y / 4 - y / 100 + y / 400 + sum(M[:m]) +    return y / 4 - y / 100 + y / 400 + M[m - 1] -    x = list(map(int, input().split(" "))) -    if x == [-1] * 6: +    a, b, c, d, e, f = x = list(map(int, input().split(" "))) +    if any([i < 0 for i in x]): -    a, b, c, d, e, f = x -    print((d - a) * 365 + f - c + L(d, e) - L(a, b)) +    ans = (d - a) * 365 + (e - b) * 30 + f - c + L(d, e) - L(a, b) +    print(ans)