Go: package main

import (
	"bufio"
		"os"
	"strings"
	"strconv"
		"fmt"
)

var scanner = bufio.NewScanner(os.Stdin)

func main() {
	for scanner.Scan() {
		input := strings.Split(scanner.Text(), " ")
		ele_t1 := [3]int{}
		ele_t2 := [3]int{}
		for i := range ele_t1 {
			ele_t1[i], _ = strconv.Atoi(input[i])
			ele_t2[i], _ = strconv.Atoi(input[i+3])
		}
		if ele_t1[0] < 0 || ele_t1[1] < 0 || ele_t1[2] < 0 ||
			ele_t2[0] < 0 || ele_t2[1] < 0 || ele_t2[2] < 0 {
				break
		}
		// t1 := time.Date(ele_t1[0], time.Month(ele_t1[1]), ele_t1[2], 0, 0, 0, 0, time.UTC)
		// t2 := time.Date(ele_t2[0], time.Month(ele_t2[1]), ele_t2[2], 0, 0, 0, 0, time.UTC)
		// diff := t2.Sub(t1)
		// fmt.Printf("%v\n", int64(diff/(time.Hour*24)))
		fmt.Println(ut2jd(ele_t2[0], ele_t2[1], ele_t2[2])-ut2jd(ele_t1[0], ele_t1[1], ele_t1[2]))
	}
}

func ut2jd(year, month, day int) int {
	if month <= 2 {
		year--
		month += 12
	}
	s := 3 + year/4 - year/100 + year/400
	s += 1720994 + year*365 + (month+1)*30 + (month+1)*3/5 + day
	return s
}

Python: from datetime import datetime
while True:
	line = raw_input()
	if "-" in line: break
	v = map(int, line.split())
	print (datetime(*v[3:]) - datetime(*v[0:3])).days

Python: import datetime
while True:
    a,b,c,x,y,z = map(int, input().split())
    if a == -1: break
    old, new = datetime.datetime(a,b,c), datetime.datetime(x,y,z)
    ans = new - old
    print(ans.days)

Python: import datetime
while 1:
    t=list(map(int,input().split()))
    if t[0]<0:break
    s=datetime.date(t[0],t[1],t[2])
    e=datetime.date(t[3],t[4],t[5])
    print((e-s).days)

Python: from datetime import datetime

while True:
    y1, m1, d1, y2, m2, d2 = map(int, input().split())
    if y1 < 0 or m1 < 0 or d1 < 0 or y2 < 0 or m2 < 0 or d2 < 0: break
    date1 = datetime(y1, m1, d1)
    date2 = datetime(y2, m2, d2)
    result = date2 - date1
    print(result.days)

Python: import datetime

while 1:
    data = list(map(int, input().split()))
    if data[0] < 0:
        break

    first = datetime.date(data[0], data[1], data[2])
    second = datetime.date(data[3], data[4], data[5])
    diff = (second - first).days
    print(diff)

Python: import datetime
while 1:
    lis = list(map(int, input().split()))
    if min(lis) < 0: break
    y1,m1,d1,y2,m2,d2 = lis
    a = datetime.date(y1,m1,d1)
    b = datetime.date(y2,m2,d2)
    c = b - a
    print(c.days)

Python: def y_to_d(y):
    y = y-1
    ret = 365 * y
    ret += y // 4
    ret -= y // 100
    ret += y // 400
    return ret

month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]


def m_to_d(y, m):
    ret = 0
    for i in range(m-1-1):
        ret += month[i]
    if m > 2 and (y % 4 == 0 and y % 100 != 0 or y % 400 == 0):
        ret -= 1
    return ret



while True:
    y1, m1, d1, y2, m2, d2 = map(int, input().split())
    if y1 == m1 == d1 == y2 == m2 == d2 == -1:
        quit()
    ymd1 = y_to_d(y1) + m_to_d(y1, m1) + d1
    ymd2 = y_to_d(y2) + m_to_d(y2, m2) + d2
    print(ymd2 - ymd1)

Python: 
import datetime

while 1:
    d = list(map(int,input().split()))
    if -1 in d:
        break
        
    d1 = datetime.date(d[0],d[1],d[2])
    d2 = datetime.date(d[3],d[4],d[5])

    ans = d2 - d1

    print(ans.days)

Python: def uru(y):
    return y % 4 == 0 and y % 100 != 0 or y % 400 == 0

def y_to_d(y):
    ret = 0
    for i in range(y):
        if uru(i):
            ret += 366
        else:
            ret += 365
    return ret

month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]


def m_to_d(y, m):
    m -= 1
    ret = 0
    for i in range(m):
        ret += month[i]
    if m >= 2 and uru(y):
        ret += 1
    return ret


while True:
    y1, m1, d1, y2, m2, d2 = map(int, input().split())
    if min(y1, m1, d1, y2, m2, d2) < 0:
        quit()
    ymd1 = y_to_d(y1) + m_to_d(y1, m1) + d1
    ymd2 = y_to_d(y2) + m_to_d(y2, m2) + d2
    print(ymd2 - ymd1)

Python: import datetime
while 1:
    y1,m1,d1,y2,m2,d2 = (int(x) for x  in input().split())
    if y1 < 0:break
    start = datetime.date(y1,m1,d1)
    end = datetime.date(y2,m2,d2)
    print((end - start).days)

Python: import datetime

while True:
  y1, m1, d1, y2, m2, d2 = map(int, input().split())
  if y1 < 0 or m1 < 0 or d1 < 0 or y2 < 0 or m2 < 0 or d2 < 0:
    break

  D1 = datetime.datetime(y1, m1, d1)
  D2 = datetime.datetime(y2, m2, d2)
  dD = D2 - D1
  print(dD.days)

Python: import datetime
while 1:
	y1,m1,d1,y2,m2,d2=map(int,raw_input().split())
	if y1==-1:break
	print (datetime.date(y2,m2,d2)-datetime.date(y1,m1,d1)).days

Python: import copy

common = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 365]
leep = copy.deepcopy(common)
leep[1] += 1
leep[12] += 1

def get_days(year):
    if year % 400 == 0:
        return leep
    elif year % 100 == 0:
        return common 
    elif year % 4 == 0:
        return leep 
    else:
        return common 

if __name__ == '__main__':

    while True:
        y1, m1, d1, y2, m2, d2 = map(int, raw_input().split())
        if y1 < 0 or y2 < 0 or m1 < 0 or m2 < 0 or d1 < 0 or d2 < 0:
            break
        ans = 0
        if y2 - y1 == 0:
            if m2 - m1 == 0:
                ans = d2 - d1
            else:
                days = get_days(y2)

                ans += days[m1 - 1] - d1
                ans += d2
                nm = m1
                while nm + 1 < m2:
                    ans += days[nm]
                    nm += 1
        else:

            days = get_days(y1)
            ans += days[m1 - 1] - d1 + 1
            nm = m1 + 1
            while nm <=  12:
                ans += days[nm - 1]
                nm += 1
            days = get_days(y2)
            nm = 0
            while nm + 1 < m2:
                ans += days[nm] 
                nm += 1
            ans += d2 - 1
            ny = y1 + 1
            for i in xrange(y2 - y1 - 1):
                days = get_days(ny + i)
                ans += days[12]
        print(ans)

Python: def isU(y):
    if y % 4 == 0:
        if y % 100 == 0:
            if y % 400 == 0:
                return True
            else:
                return False
        else:
            return True
    else:
        return False

def dd(y,m,d):
    a = 0
    mm = [0,31,28,31,30,31,30,31,31,30,31,30,31]
    if isU(y):
        mm[2] = 29

    for i in range(m):
        a += mm[i]
    a += d
    return a

def dy(y1, y2):
    y = 0
    for i in range(y1, y2):
        if isU(i):
            y += 366
        else:
            y += 365
    return y

def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

while True:
    y1,m1,d1,y2,m2,d2 = [int(i) for i in input().split()]
    if y1 < 0 or m1 < 0 or d1 < 0 or y2 < 0 or m2 < 0 or d2 < 0:
        break
    ans = 0
    ans += dy(y1,y2)
    ans -= dd(y1,m1,d1)
    ans += dd(y2,m2,d2)
    print(ans)

Python: # -*- coding: utf-8 -*-

import sys
import os
import math
from datetime import date

for s in sys.stdin:
    y1, m1, d1, y2, m2, d2 = map(int, s.split())

    if y1 == m1 == d1 == y2 == m2 == d2 == -1:
        break

    day1 = date(y1, m1, d1)
    day2 = date(y2, m2, d2)

    delta = day2 - day1
    print(delta.days)

Python: #datetimeモジュールのインポート
import datetime

#標準入力をし、いずれかが負の数なら、処理を終了する。
while True:
    y1,m1,d1,y2,m2,d2 = map(int,input().split())
    if y1 < 0 or y2 < 0 or m1 < 0 or m2 < 0 or d1 < 0 or d2 < 0:break

    #入力値をdatetime型にする
    dt1 = datetime.date(y1,m1,d1)
    dt2 = datetime.date(y2,m2,d2)
    
    #差を求めて出力する
    days = max(dt1,dt2) - min(dt1,dt2)
    print(days.days)

Python: # Aizu Problem 00125: Day Count
#
import sys, math, os, datetime

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    y1, m1, d1, y2, m2, d2 = [int(_) for _ in line.split()]
    if y1 == m1 == d1 == y2 == m2 == d2 == -1:
        break
    date1 = datetime.date(y1, m1, d1)
    date2 = datetime.date(y2, m2, d2)
    print((date2 - date1).days)