import sys readline=sys.stdin.readline time=600+int(readline())*6//10 h,m=divmod(time,60) h=str(h).zfill(2) m=str(m).zfill(2) print(h+":"+m)