seconds1 = int(30)
minutes1 = int(1)
hours1 = int(6) 
seconds2 = int(10) 
minutes2 = int(2) 
hours2 = int(6)

total1 = minutes1 * 60 + hours1 * 3600 + seconds1

total2 = minutes2 * 60 + hours2 * 3600 + seconds2
print(total2 - total1)
