• + 4 comments

    Python 2 solution:

    # Enter your code here. Read input from STDIN. Print output to STDOUT
    st = raw_input().split(" ")
    sm =0.0
    for i in range(len(st)):
        temp = st[i].split(",")
        sm += (int(temp[0])+int(temp[1])+int(temp[2]))/3
    sm = sm/len(st)
    if sm < 80:
        print "night"
    else:
        print "day"