a = int(input())*60//100 c = "" print(f"{10+a//60}:{0 if a%60 < 10 else c}{a%60}")