x=int(input()) a,b=x//100,(x*60/100-x*60//100) print(f"{a+10}:{int(b):02d}")