a = int(input()) minn = a*60//100 h = (10+minn//60) m = minn % 60 m = str(m) m = (2-len(m))*'0'+m print(str(h)+':'+m)