a = input() hour = a/100 km = a%100 hour = 10+hour time = km/100.*60 print "%02.f" % (hour)+":"+"%02.f" % (time)