from datetime import datetime,timedelta print("Start time") a=input() print("End time") b=input() p=datetime.strptime(a,"%H:%M:%S") q=datetime.strptime(b,"%H:%M:%S") r=q-p w=int(r.total_seconds()*1000) print("Time in milliseconds is ",w)